Class GameRules.Value<T extends GameRules.Value<T>>

java.lang.Object
net.minecraft.world.level.GameRules.Value<T>
Direct Known Subclasses:
GameRules.BooleanValue, GameRules.IntegerValue
Enclosing class:
GameRules

public abstract static class GameRules.Value<T extends GameRules.Value<T>> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • updateFromArgument

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

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

      protected void onChanged(@Nullable MinecraftServer p_46369_)
    • deserialize

      protected abstract void deserialize(String p_46367_)
    • serialize

      public abstract String serialize()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCommandResult

      public abstract int getCommandResult()
    • getSelf

      protected abstract T getSelf()
    • copy

      protected abstract T copy()
    • setFrom

      public abstract void setFrom(T p_46363_, @Nullable MinecraftServer p_46364_)