Enum Class BattleSceneSettingMode
java.lang.Object
java.lang.Enum<BattleSceneSettingMode>
com.pixelmonmod.pixelmon.api.battles.scene.BattleSceneSettingMode
- All Implemented Interfaces:
Serializable,Comparable<BattleSceneSettingMode>,Constable
Defines whether a render setting is authored by the battle scene or mirrored from the real client world.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BattleSceneSettingMode> -
Method Summary
Modifier and TypeMethodDescriptionstatic BattleSceneSettingModedecode(net.minecraft.network.FriendlyByteBuf buffer) Decodes a setting mode from a battle scene packet.voidencode(net.minecraft.network.FriendlyByteBuf buffer) Encodes this setting mode for a battle scene packet.booleanfixed()static BattleSceneSettingModeReturns the enum constant of this class with the specified name.static BattleSceneSettingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIXED
-
WORLD_MATCHING
-
-
Field Details
-
CODEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fixed
public boolean fixed()- Returns:
- true when the scene should use its authored value instead of mirroring the real world
-
decode
Decodes a setting mode from a battle scene packet.- Parameters:
buffer- the packet buffer to read from- Returns:
- the decoded setting mode
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buffer) Encodes this setting mode for a battle scene packet.- Parameters:
buffer- the packet buffer to write to
-