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
Fields inherited from class net.minecraft.world.level.GameRules.Value
type
-
Constructor Summary
ConstructorDescriptionIntegerValue(GameRules.Type<GameRules.IntegerValue> p_46286_, int p_46287_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.IntegerValue
copy()
(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 void
deserialize(String p_46307_)
int
get()
int
protected GameRules.IntegerValue
getSelf()
private static int
void
set(int p_151490_, MinecraftServer p_151491_)
void
setFrom(GameRules.IntegerValue p_46298_, MinecraftServer p_46299_)
boolean
tryDeserialize(String p_46315_)
protected void
updateFromArgument(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:
updateFromArgument
in classGameRules.Value<GameRules.IntegerValue>
-
get
public int get() -
set
-
serialize
- Specified by:
serialize
in classGameRules.Value<GameRules.IntegerValue>
-
deserialize
- Specified by:
deserialize
in classGameRules.Value<GameRules.IntegerValue>
-
tryDeserialize
-
safeParse
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.Value<GameRules.IntegerValue>
-
getSelf
- Specified by:
getSelf
in classGameRules.Value<GameRules.IntegerValue>
-
copy
- Specified by:
copy
in classGameRules.Value<GameRules.IntegerValue>
-
setFrom
- Specified by:
setFrom
in classGameRules.Value<GameRules.IntegerValue>
-