technicjelle / bmutils Goto Github PK
View Code? Open in Web Editor NEWA small library with a collection of useful functions for BlueMap addons
Home Page: https://technicjelle.com/BMUtils/
License: Mozilla Public License 2.0
A small library with a collection of useful functions for BlueMap addons
Home Page: https://technicjelle.com/BMUtils/
License: Mozilla Public License 2.0
Wait until #9 is done, so I can compare.
From Blue:
btw I think you forgot to make this a hashset instead of a list..
would improve the.contains()
below by a lot ^^
This will make it better for people to just copy the file itself.
Like it were a header-only library in C(++).
Also mention in the readme that users can also just copy the file they want itself, instead of having to install the library.
Idea for the potential interface:
class ShapeDefinition {
Shape shape;
Shape holes;
private ShapeDefinition(Shape s, Shape h) {
shape = s;
holes = h;
}
public ShapeDefinition(Collection<Chunk>) {
Shape shape;
Shape holes;
//TODO: Create algorithm to calculate `shape` and `holes`
return new ShapeDefinition(shape, holes);
}
}
Usage:
Collection<Chunk> chunks = PluginAPI.getClaimedArea(uuid);
ShapeDefinition sd = new(chunks);
ShapeMarker.builder()
.shape(sd.shape)
.holes(sd.holes)
...
Useful for getting around Z-fighting when having two claimed chunks next to eachother.
Wait until #9 is done before implementing this, so I can compare.
For when you're totally 100% sure that your areas are contiguous, and you want to skip the check that's included in the default method.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.