类 GameRules.BooleanValue
java.lang.Object
net.minecraft.world.level.GameRules.Value<GameRules.BooleanValue>
net.minecraft.world.level.GameRules.BooleanValue
- 封闭类:
GameRules
-
字段概要
字段从类继承的字段 net.minecraft.world.level.GameRules.Value
type
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected GameRules.BooleanValue
copy()
static GameRules.Type
<GameRules.BooleanValue> create
(boolean p_46251_) static GameRules.Type
<GameRules.BooleanValue> create
(boolean p_46253_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_46254_) protected void
deserialize
(String p_46234_) boolean
get()
int
protected GameRules.BooleanValue
getSelf()
void
set
(boolean p_46247_, MinecraftServer p_46248_) void
setFrom
(GameRules.BooleanValue p_46225_, MinecraftServer p_46226_) protected void
updateFromArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46231_, String p_46232_) 从类继承的方法 net.minecraft.world.level.GameRules.Value
onChanged, setFromArgument, toString
-
字段详细资料
-
value
private boolean value
-
-
构造器详细资料
-
BooleanValue
-
-
方法详细资料
-
create
public static GameRules.Type<GameRules.BooleanValue> create(boolean p_46253_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_46254_) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46231_, String p_46232_) -
get
public boolean get() -
set
-
serialize
- 指定者:
serialize
在类中GameRules.Value<GameRules.BooleanValue>
-
deserialize
- 指定者:
deserialize
在类中GameRules.Value<GameRules.BooleanValue>
-
getCommandResult
public int getCommandResult() -
getSelf
- 指定者:
getSelf
在类中GameRules.Value<GameRules.BooleanValue>
-
copy
- 指定者:
copy
在类中GameRules.Value<GameRules.BooleanValue>
-
setFrom
- 指定者:
setFrom
在类中GameRules.Value<GameRules.BooleanValue>
-