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 Summary
FieldsFields inherited from class net.minecraft.world.level.GameRules.Value
type -
Constructor Summary
ConstructorsConstructorDescriptionIntegerValue(GameRules.Type<GameRules.IntegerValue> p_46286_, int p_46287_) -
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.IntegerValuecopy()(package private) static GameRules.Type<GameRules.IntegerValue>create(int p_46313_)private 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.Value
onChanged, setFromArgument, toString
-
Field Details
-
value
private int value
-
-
Constructor Details
-
IntegerValue
-
-
Method Details
-
create
private static GameRules.Type<GameRules.IntegerValue> create(int p_46295_, BiConsumer<MinecraftServer,GameRules.IntegerValue> p_46296_) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46304_, String p_46305_)- Specified by:
updateFromArgumentin classGameRules.Value<GameRules.IntegerValue>
-
get
public int get() -
set
-
serialize
- Specified by:
serializein classGameRules.Value<GameRules.IntegerValue>
-
deserialize
- Specified by:
deserializein classGameRules.Value<GameRules.IntegerValue>
-
tryDeserialize
-
safeParse
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResultin classGameRules.Value<GameRules.IntegerValue>
-
getSelf
- Specified by:
getSelfin classGameRules.Value<GameRules.IntegerValue>
-
copy
- Specified by:
copyin classGameRules.Value<GameRules.IntegerValue>
-
setFrom
- Specified by:
setFromin classGameRules.Value<GameRules.IntegerValue>
-