net.minecraft.world.level.gamerules

public final class GameRule<T>

esn
net.minecraft.world.level.gamerules.GameRule
net.minecraft.class_12279
net.minecraft.world.rule.GameRule

Field summary

Modifier and TypeField
private final GameRuleCategory
a
category
field_64167
category
private final GameRuleType
b
gameRuleType
field_64168
type
private final com.mojang.brigadier.arguments.ArgumentType<T>
c
argument
field_64169
argumentType
private final GameRules$VisitorCaller<T>
d
visitorCaller
field_64170
acceptor
private final com.mojang.serialization.Codec<T>
e
valueCodec
field_64171
codec
private final ToIntFunction<T>
f
commandResultFunction
field_64172
commandResultSupplier
private final T
g
defaultValue
field_64173
defaultValue
private final FeatureFlagSet
h
requiredFeatures
field_64174
requiredFeatures

Constructor summary

ModifierConstructor
public (GameRuleCategory category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, GameRules$VisitorCaller<T> acceptor, com.mojang.serialization.Codec<T> codec, ToIntFunction<T> commandResultSupplier, T defaultValue, FeatureFlagSet requiredFeatures)

Method summary

Modifier and TypeMethod
public String
a()
id()
method_76144()
toShortString()
public Identifier
b()
getIdentifier()
method_76148()
getId()
public String
c()
getDescriptionId()
method_76150()
getTranslationKey()
public String
a(T arg0)
serialize(T arg0)
method_76146(T arg0)
getValueName(T value)
public com.mojang.serialization.DataResult<T>
a(String arg0)
deserialize(String arg0)
method_76147(String arg0)
deserialize(String value)
public Class<T>
d()
valueClass()
method_76151()
getValueClass()
public void
a(esr arg0)
callVisitor(GameRuleTypeVisitor arg0)
method_76145(class_4311 arg0)
accept(GameRuleVisitor visitor)
public int
b(T arg0)
getCommandResult(T arg0)
method_76149(T arg0)
getCommandResult(T value)
public GameRuleCategory
e()
category()
method_76152()
getCategory()
public GameRuleType
f()
gameRuleType()
method_76153()
getType()
public com.mojang.brigadier.arguments.ArgumentType<T>
g()
argument()
method_76154()
getArgumentType()
public com.mojang.serialization.Codec<T>
h()
valueCodec()
method_76155()
getCodec()
public T
i()
defaultValue()
method_76156()
getDefaultValue()
public FeatureFlagSet
j()
requiredFeatures()
method_76157()
getRequiredFeatures()