Package com.pixelmonmod.pixelmon.battles.api.rules
package com.pixelmonmod.pixelmon.battles.api.rules
-
ClassDescriptionAn interface representing a property (rule) of a battle with the given typeStatic registry class containing a cache of all
BattleProperty
that can be used You MUST register any customBattleProperty
s here otherwise they will not be read/written properlyCustomizable rules for restricting battles.An interface representing a value for aBattleProperty
of given type T ThePropertyValue.encode(FriendlyByteBuf)
andPropertyValue.decode(FriendlyByteBuf)
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) ThePropertyValue.write(String, CompoundTag)
andPropertyValue.read(String, CompoundTag)
methods should only be implemented if you want the data to persist on NPCs/Entities which store the relevantBattleRules