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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
copy()
protected abstract void
deserialize
(String p_223553_1_) abstract int
protected abstract T
getSelf()
protected void
onChanged
(MinecraftServer p_223556_1_) abstract String
abstract void
setFrom
(T p_230313_1_, MinecraftServer p_230313_2_) void
setFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSource> p_223554_1_, String p_223554_2_) toString()
protected abstract void
updateFromArgument
(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
-