Enum Class BattleSceneSettingMode

java.lang.Object
java.lang.Enum<BattleSceneSettingMode>
com.pixelmonmod.pixelmon.api.battles.scene.BattleSceneSettingMode
All Implemented Interfaces:
Serializable, Comparable<BattleSceneSettingMode>, Constable

public enum BattleSceneSettingMode extends Enum<BattleSceneSettingMode>
Defines whether a render setting is authored by the battle scene or mirrored from the real client world.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static BattleSceneSettingMode[] 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

      public static BattleSceneSettingMode valueOf(String name)
      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 name
      NullPointerException - 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

      public static BattleSceneSettingMode decode(net.minecraft.network.FriendlyByteBuf buffer)
      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