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 typeA battle rule is a single rule that can be applied to a battle.This represents a set of
BattleRule
s that can be applied to a battle.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
A reasoned battle requirement represents a battle requirement and a reason for that requirement, so that we can provide feedback to the player about why their party is not valid for a battle.