| Interface | Description |
|---|---|
| BattleProperty<T> |
An interface representing a property (rule) of a battle with the given type
|
| PropertyValue<T> |
An interface representing a value for a
BattleProperty of given type T
The PropertyValue.encode(PacketBuffer) and PropertyValue.decode(PacketBuffer) methods do not have to
be implemented unless the value is being sent to the client (only useful for internal uses or when a client-side mod
is present)
The PropertyValue.write(String, CompoundNBT) and PropertyValue.read(String, CompoundNBT) methods should
only be implemented if you want the data to persist on NPCs/Entities which store the relevant BattleRules |
| Class | Description |
|---|---|
| BattleRuleRegistry |
Static registry class containing a cache of all
BattleProperty that can be used
You MUST register any custom BattlePropertys here otherwise they will not be read/written properly |
| BattleRules |
Customizable rules for restricting battles.
|