Class GameRules.RuleValue<T extends GameRules.RuleValue<T>>

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

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

  • Constructor Details

  • Method Details

    • updateFromArgument

      protected abstract void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, String p_223555_2_)
    • setFromArgument

      public void setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223554_1_, String p_223554_2_)
    • onChanged

      protected void onChanged(@Nullable MinecraftServer p_223556_1_)
    • deserialize

      protected abstract void deserialize(String p_223553_1_)
    • 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_230313_1_, @Nullable MinecraftServer p_230313_2_)