Enum Class SLPGameruleRegistry

java.lang.Object
java.lang.Enum<SLPGameruleRegistry>
top.r3944realms.superleadrope.core.register.SLPGameruleRegistry
所有已实现的接口:
Serializable, Comparable<SLPGameruleRegistry>, Constable

public enum SLPGameruleRegistry extends Enum<SLPGameruleRegistry>
The enum Slp gamerule registry.
  • 枚举常量详细资料

  • 字段详细资料

    • gamerules

      public static final Map<String,net.minecraft.world.level.GameRules.Key<?>> gamerules
      The constant gamerules.
    • gameruleDataTypes

      public static final Map<String,SLPGameruleRegistry.RuleDataType> gameruleDataTypes
      The constant gameruleDataTypes.
  • 方法详细资料

    • values

      public static SLPGameruleRegistry[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SLPGameruleRegistry 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getGameruleBoolValue

      public static boolean getGameruleBoolValue(net.minecraft.world.level.Level level, String gameruleName)
      Gets gamerule bool value.
      参数:
      level - the level
      gameruleName - the gamerule name
      返回:
      the gamerule bool value
    • getGameruleIntValue

      public static Integer getGameruleIntValue(net.minecraft.world.level.Level level, String gameruleName)
      Gets gamerule int value.
      参数:
      level - the level
      gameruleName - the gamerule name
      返回:
      the gamerule int value
    • registerGamerule

      public void registerGamerule(String gameruleName, net.minecraft.world.level.GameRules.Category category, boolean pDefault)
      Register gamerule.
      参数:
      gameruleName - the gamerule name
      category - the category
      pDefault - the p default
    • registerGamerule

      public void registerGamerule(String gameruleName, net.minecraft.world.level.GameRules.Category category, boolean pDefault, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.BooleanValue> pChangeListener)
      Register gamerule.
      参数:
      gameruleName - the gamerule name
      category - the category
      pDefault - the p default
      pChangeListener - the p change listener
    • registerGamerule

      public void registerGamerule(String gameruleName, net.minecraft.world.level.GameRules.Category category, int pDefault)
      Register gamerule.
      参数:
      gameruleName - the gamerule name
      category - the category
      pDefault - the p default
    • registerGamerule

      public void registerGamerule(String gameruleName, net.minecraft.world.level.GameRules.Category category, int pDefault, BiConsumer<net.minecraft.server.MinecraftServer,net.minecraft.world.level.GameRules.IntegerValue> pChangeListener)
      Register gamerule.
      参数:
      gameruleName - the gamerule name
      category - the category
      pDefault - the p default
      pChangeListener - the p change listener
    • register

      public static void register()
      Register.