类 GameRules.Value<T extends GameRules.Value<T>>

java.lang.Object
net.minecraft.world.level.GameRules.Value<T>
直接已知子类:
GameRules.BooleanValue, GameRules.IntegerValue
封闭类:
GameRules

public abstract static class GameRules.Value<T extends GameRules.Value<T>> extends Object
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • updateFromArgument

      protected abstract void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pParamName)
    • setFromArgument

      public void setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pParamName)
    • onChanged

      protected void onChanged(@Nullable MinecraftServer pServer)
    • deserialize

      protected abstract void deserialize(String pValue)
    • serialize

      public abstract String serialize()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • getCommandResult

      public abstract int getCommandResult()
    • getSelf

      protected abstract T getSelf()
    • copy

      protected abstract T copy()
    • setFrom

      public abstract void setFrom(T pValue, @Nullable MinecraftServer pServer)