类 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 pDefaultValue) static GameRules.Type<GameRules.IntegerValue>
create
(int pDefaultValue, BiConsumer<MinecraftServer, GameRules.IntegerValue> pChangeListener) protected void
deserialize
(String pValue) int
get()
int
protected GameRules.IntegerValue
getSelf()
private static int
void
set
(int pValue, MinecraftServer pServer) void
setFrom
(GameRules.IntegerValue pValue, MinecraftServer pServer) boolean
tryDeserialize
(String pName) protected void
updateFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pParamName) 从类继承的方法 net.minecraft.world.level.GameRules.Value
onChanged, setFromArgument, toString
-
字段详细资料
-
value
private int value
-
-
构造器详细资料
-
IntegerValue
-
-
方法详细资料
-
create
public static GameRules.Type<GameRules.IntegerValue> create(int pDefaultValue, BiConsumer<MinecraftServer, GameRules.IntegerValue> pChangeListener) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pParamName) -
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>
-