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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tcopy()protected abstract voiddeserialize(String p_223553_1_) abstract intprotected abstract TgetSelf()protected voidonChanged(MinecraftServer p_223556_1_) abstract Stringabstract voidsetFrom(T p_230313_1_, MinecraftServer p_230313_2_) voidsetFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223554_1_, String p_223554_2_) toString()protected abstract voidupdateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, String p_223555_2_)
-
Field Details
-
type
-
-
Constructor Details
-
RuleValue
-
-
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
-
deserialize
-
serialize
-
toString
-
getCommandResult
public abstract int getCommandResult() -
getSelf
-
copy
-
setFrom
-