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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
copy()
protected abstract void
deserialize
(String p_46367_) abstract int
protected abstract T
getSelf()
protected void
onChanged
(MinecraftServer p_46369_) abstract String
abstract void
setFrom
(T p_46363_, MinecraftServer p_46364_) void
setFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46371_, String p_46372_) toString()
protected abstract void
updateFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46365_, String p_46366_)
-
Field Details
-
type
-
-
Constructor Details
-
Value
-
-
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
-
deserialize
-
serialize
-
toString
-
getCommandResult
public abstract int getCommandResult() -
getSelf
-
copy
-
setFrom
-