Package-level declarations
Types
Just returns the value; expects the value to be already registered elsewhere.
ValueGroup.float registered to the submodule directly.
Stores some data used to construct messages. The id, when the message is sent from a client object, should follow the pattern ObjectName#UniqueString to avoid duplicates.
Does nothing; Has no value.
Provides a ranged value to a submodule. This has the advantage that the value can be either registered in the module or in the submodule.
Represents an operation that does not return a result and can only be executed once when canExecute returns true. This is protected, so all future calls won't execute the actual action.
Manages things like ModuleScaffold's silent mode. Not thread safe, please only use this on the main-thread of minecraft
Properties
Both 1.20.3 and 1.20.4 use protocol 765, so we can use this as a default
Since 1.21.5 anything can be used to blocking
Since 1.21.6 the ServerboundPlayerCommandPacket.Action removed 2 entries for sneaking
Since 1.21.9 the byte format of net.minecraft.world.phys.Vec3 have been rewritten with net.minecraft.network.LpVec3.
Since 26.1 net.minecraft.network.protocol.game.ServerboundInteractPacket has only one mode with entity and relative position (previous INTERACT_AT).
Functions
Adds a message and assigns the ID to it.
Returns an immutable Component from the receiver.
Returns an immutable Component from the receiver with formatting.
Returns an immutable Component from the receiver with style.
Adds a new chat message.
Converts milliseconds to seconds, minutes, hours and days when present.
Creates text with a color gradient between two colors.
Joins a list of Component into a single Component with the given separator.
Generates 16 char long names in this format: (x = random separator character (0-9_))
Removes all messages with the given ID.
Returns the root domain of the domain.
Rounds the given number to the specified decimal place (the first by default). For additional info see RoundingMode#HALF_UP.
Sends an open inventory packet with the help of ViaFabricPlus. This is only for older versions. (<= 1.11.2)
Generates a progress bar based on the percentage (range 0 to 100).
Translate alt color codes to minecraft color codes