Package net.minecraft.world
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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected GameRules.RuleType<T>
type
-
Constructor Summary
Constructors Constructor Description RuleValue(GameRules.RuleType<T> p_i51530_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
copy()
protected abstract void
deserialize(java.lang.String p_223553_1_)
abstract int
getCommandResult()
protected abstract T
getSelf()
protected void
onChanged(MinecraftServer p_223556_1_)
abstract java.lang.String
serialize()
abstract void
setFrom(T p_230313_1_, MinecraftServer p_230313_2_)
void
setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223554_1_, java.lang.String p_223554_2_)
java.lang.String
toString()
protected abstract void
updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, java.lang.String p_223555_2_)
-
-
-
Field Detail
-
type
protected final GameRules.RuleType<T extends GameRules.RuleValue<T>> type
-
-
Constructor Detail
-
RuleValue
public RuleValue(GameRules.RuleType<T> p_i51530_1_)
-
-
Method Detail
-
updateFromArgument
protected abstract void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, java.lang.String p_223555_2_)
-
setFromArgument
public void setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223554_1_, java.lang.String p_223554_2_)
-
onChanged
protected void onChanged(@Nullable MinecraftServer p_223556_1_)
-
deserialize
protected abstract void deserialize(java.lang.String p_223553_1_)
-
serialize
public abstract java.lang.String serialize()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.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_)
-
-