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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.IntegerValuecopy()static GameRules.Type<GameRules.IntegerValue> create(int p_46313_) (package private) static GameRules.Type<GameRules.IntegerValue> create(int p_320826_, int p_320897_, int p_320198_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_320846_) 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
public static GameRules.Type<GameRules.IntegerValue> create(int p_46295_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_46296_) -
create
static GameRules.Type<GameRules.IntegerValue> create(int p_320826_, int p_320897_, int p_320198_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_320846_) -
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>
-