Package net.minecraft.world.level
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tcopy()protected abstract voiddeserialize(String value) abstract intprotected abstract TgetSelf()protected voidonChanged(MinecraftServer server) abstract Stringabstract voidsetFrom(T value, MinecraftServer server) voidsetFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String paramName) toString()protected abstract voidupdateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String paramName)
-
Field Details
-
type
-
-
Constructor Details
-
Value
-
-
Method Details
-
updateFromArgument
protected abstract void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String paramName) -
setFromArgument
public void setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String paramName) -
onChanged
-
deserialize
-
serialize
-
toString
-
getCommandResult
public abstract int getCommandResult() -
getSelf
-
copy
-
setFrom
-