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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract Tcopy()protected abstract voiddeserialize(String p_46367_) abstract intprotected abstract TgetSelf()protected voidonChanged(MinecraftServer p_46369_) abstract Stringabstract voidsetFrom(T p_46363_, MinecraftServer p_46364_) voidsetFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46371_, String p_46372_) toString()protected abstract voidupdateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46365_, String p_46366_) 
- 
Field Details- 
type
 
- 
- 
Constructor Details- 
Value
 
- 
- 
Method Details- 
updateFromArgumentprotected abstract void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46365_, String p_46366_) 
- 
setFromArgumentpublic void setFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46371_, String p_46372_) 
- 
onChanged
- 
deserialize
- 
serialize
- 
toString
- 
getCommandResultpublic abstract int getCommandResult()
- 
getSelf
- 
copy
- 
setFrom
 
-