bentoboxworld / docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation
License: Other
Documentation
License: Other
The documentation for working with addons exists, but isn't perfect. The Addon Request API is a bit lacking, and threw me for a loop until I got it figured out. This is just a basic request to add this to the wiki to maybe give people another, more specific example for working with OneBlock. This function will return the phase a player is currently in, if you give the function the player UUID.
public String getPhase(UUID uuid){
AddonRequestBuilder builder = new AddonRequestBuilder();
Map<String, String> map = (Map<String, String>) builder
.addon("AOneBlock")
.label("island-stats")
.addMetaData("player", uuid)
.request();
return map.get("phase");
}
The example on the wiki only has an example where the method is static, and that doesn't work for Oneblock, the example also provides a one value map, not a map with multiple options.
Docs should show the correct capitalization of methods.
About 60% of the docs currently show the method as being .addMetadata instead of .addMetaData, for example
https://docs.bentobox.world/en/latest/addons/Challenges/
Copy paste the example code into a working project, note that your ide will show that .addMetadata doesn't exist as a method of the AddonRequestBuilder(). Fix the capitalization to be .addMetaData and the ide will show that this is a method which does exist
Present in the documentation as of 2022-11-18
docs/addons/Challenges/index.md
(Is not present in MagicCobblestoneGenerator docs)
No response
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.