The advancement gives you a convenient interface to trigger or revoke specific advancements and advancement groups. It implements the advancement command.
The Builder Widget embeds a builder function in your Widget Tree. Here you can provide a similar method to the generate method of a Widget. This allows you to define new variables, make calculations and conditions.
The RawFile Widget enables you to generate your own Files right in the Widget tree. Here you can define your own file extension, the file path and the content.
The Raycast Widget is one of the most powerful widgets by giving you many options to configure raytracing in Minecraft.
Internally it uses local coordinates, a distance counter and recursion.
The ScoreTimerModule implements a continuous timer with a delay of a number of ticks. It therefore uses a Score to count up or down in steps and resets to the start value afterwards.
A StraitWidget allows you to build up a List of Widgets inside of a Widget. Like the Builder, you have to provide a Function, which takes in a List and then you can add on to this list.
Object that represents time in minecraft. Usually translated into ticks (20ticks = 1 second).
A more intuitive way is to use built in getters on the num type and operators.
Writing a Widget becomes much simpler with the @WidgetAnnotation() annotation. You can just give it a function with needed parameters which returns a new Widget and the generators will figure out a Widget class to go along with it.
Writing a Widget becomes much simpler with the @Wdg annotation. You can just give it a function with needed parameters which returns a new Widget and the generators will figure out a Widget class to go along with it.
getAllFiles accepts, just like createProject, your Project and optionally arguments. It then generates the widget tree and builds the files, but instead of saving them to your machine, returns them as a Dart Map(filename-content).
When you want to save it as any other Archive or want to implement own generation, you can get the Archive instance with all files added by calling getArchive with the files Map.
Read the documentation of the archive package to see what you are able to do: https://pub.dev/documentation/archive
Gets all commands generated by one Widget, preferably just used with wrapper Widgets
Caution with all Widgets providing not only command functionality, like File, Pack, Execute, If and more
This function gets a json representation(Map) of the tree structure before generating the files. This is the same that is used as the objd.json output in debug mode.
Saves or downloads(depending on platform) the project as a zip archive. Accepts a file Map(filename-content), most likely from getAllFiles, and a path to save to(must include filename + .zip extension)