类 GameRules.IntegerValue
java.lang.Object
net.minecraft.world.level.GameRules.Value<GameRules.IntegerValue>
net.minecraft.world.level.GameRules.IntegerValue
- 封闭类:
GameRules
-
字段概要
字段从类继承的字段 net.minecraft.world.level.GameRules.Value
type
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected GameRules.IntegerValue
copy()
static GameRules.Type
<GameRules.IntegerValue> create
(int p_46313_) (专用程序包) static GameRules.Type
<GameRules.IntegerValue> create
(int p_332409_, int p_333284_, int p_329881_, FeatureFlagSet p_364744_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_334400_) 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_) 从类继承的方法 net.minecraft.world.level.GameRules.Value
onChanged, setFromArgument, toString
-
字段详细资料
-
value
private int value
-
-
构造器详细资料
-
IntegerValue
-
-
方法详细资料
-
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_332409_, int p_333284_, int p_329881_, FeatureFlagSet p_364744_, BiConsumer<MinecraftServer, GameRules.IntegerValue> p_334400_) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46304_, String p_46305_) -
get
public int get() -
set
-
serialize
- 指定者:
serialize
在类中GameRules.Value<GameRules.IntegerValue>
-
deserialize
- 指定者:
deserialize
在类中GameRules.Value<GameRules.IntegerValue>
-
tryDeserialize
-
safeParse
-
getCommandResult
public int getCommandResult() -
getSelf
- 指定者:
getSelf
在类中GameRules.Value<GameRules.IntegerValue>
-
copy
- 指定者:
copy
在类中GameRules.Value<GameRules.IntegerValue>
-
setFrom
- 指定者:
setFrom
在类中GameRules.Value<GameRules.IntegerValue>
-