Package net.minecraft.world
Class GameRules.IntegerValue
java.lang.Object
net.minecraft.world.GameRules.RuleValue<GameRules.IntegerValue>
net.minecraft.world.GameRules.IntegerValue
- Enclosing class:
- GameRules
-
Field Summary
Fields inherited from class net.minecraft.world.GameRules.RuleValue
type
-
Constructor Summary
ConstructorDescriptionIntegerValue
(GameRules.RuleType<GameRules.IntegerValue> p_i51534_1_, int p_i51534_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.IntegerValue
copy()
private static GameRules.RuleType<GameRules.IntegerValue>
create
(int p_223559_0_) private static GameRules.RuleType<GameRules.IntegerValue>
create
(int p_223564_0_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_223564_1_) protected void
deserialize
(String p_223553_1_) int
get()
int
protected GameRules.IntegerValue
getSelf()
private static int
void
setFrom
(GameRules.IntegerValue p_230313_1_, MinecraftServer p_230313_2_) boolean
tryDeserialize
(String p_234909_1_) protected void
updateFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, String p_223555_2_) Methods inherited from class net.minecraft.world.GameRules.RuleValue
onChanged, setFromArgument, toString
-
Field Details
-
value
private int value
-
-
Constructor Details
-
IntegerValue
-
-
Method Details
-
create
private static GameRules.RuleType<GameRules.IntegerValue> create(int p_223564_0_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_223564_1_) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, String p_223555_2_) - Specified by:
updateFromArgument
in classGameRules.RuleValue<GameRules.IntegerValue>
-
get
public int get() -
serialize
- Specified by:
serialize
in classGameRules.RuleValue<GameRules.IntegerValue>
-
deserialize
- Specified by:
deserialize
in classGameRules.RuleValue<GameRules.IntegerValue>
-
tryDeserialize
-
safeParse
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.RuleValue<GameRules.IntegerValue>
-
getSelf
- Specified by:
getSelf
in classGameRules.RuleValue<GameRules.IntegerValue>
-
copy
- Specified by:
copy
in classGameRules.RuleValue<GameRules.IntegerValue>
-
setFrom
- Specified by:
setFrom
in classGameRules.RuleValue<GameRules.IntegerValue>
-