Package net.minecraft.world.level
Class GameRules.IntegerValue
java.lang.Object
net.minecraft.world.level.GameRules.Value<GameRules.IntegerValue>
net.minecraft.world.level.GameRules.IntegerValue
- Enclosing class:
- GameRules
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.level.GameRules.Valuetype
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected GameRules.IntegerValuecopy()static GameRules.Type<GameRules.IntegerValue>create(int p_46313_) static GameRules.Type<GameRules.IntegerValue>create(int p_46295_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_46296_) protected voiddeserialize(String p_46307_) intget()intprotected GameRules.IntegerValuegetSelf()private static intvoidset(int p_151490_, MinecraftServer p_151491_) voidsetFrom(GameRules.IntegerValue p_46298_, MinecraftServer p_46299_) booleantryDeserialize(String p_46315_) protected voidupdateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46304_, String p_46305_) Methods inherited from class net.minecraft.world.level.GameRules.ValueonChanged, setFromArgument, toString
- 
Field Details- 
valueprivate int value
 
- 
- 
Constructor Details- 
IntegerValue
 
- 
- 
Method Details- 
createpublic static GameRules.Type<GameRules.IntegerValue> create(int p_46295_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_46296_) 
- 
create
- 
updateFromArgumentprotected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46304_, String p_46305_) - Specified by:
- updateFromArgumentin class- GameRules.Value<GameRules.IntegerValue>
 
- 
getpublic int get()
- 
set
- 
serialize- Specified by:
- serializein class- GameRules.Value<GameRules.IntegerValue>
 
- 
deserialize- Specified by:
- deserializein class- GameRules.Value<GameRules.IntegerValue>
 
- 
tryDeserialize
- 
safeParse
- 
getCommandResultpublic int getCommandResult()- Specified by:
- getCommandResultin class- GameRules.Value<GameRules.IntegerValue>
 
- 
getSelf- Specified by:
- getSelfin class- GameRules.Value<GameRules.IntegerValue>
 
- 
copy- Specified by:
- copyin class- GameRules.Value<GameRules.IntegerValue>
 
- 
setFrom- Specified by:
- setFromin class- GameRules.Value<GameRules.IntegerValue>
 
 
-