net.minecraft.world.level

public class GameRules$Type<T extends GameRules$Value<T>>

dgf$f
net.minecraft.world.level.GameRules$Type
net.minecraft.class_1928$class_4314
net.minecraft.world.GameRules$Type
net.minecraft.world.level.GameRules$GameRuleDefinition

Field summary

Modifier and TypeField
final Supplier<com.mojang.brigadier.arguments.ArgumentType<?>>
a
argument
field_19414
argumentType
private final Function<GameRules$Type<T>, T>
b
constructor
field_19415
ruleFactory
final BiConsumer<MinecraftServer, T>
c
callback
field_19416
changeCallback
private final GameRules$VisitorCaller<T>
d
visitorCaller
field_24104
ruleAcceptor
final FeatureFlagSet
e
requiredFeatures
field_52616
requiredFeatures

Constructor summary

ModifierConstructor
(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType, Function<GameRules$Type<T>, T> ruleFactory, BiConsumer<MinecraftServer, T> changeCallback, GameRules$VisitorCaller<T> ruleAcceptor, FeatureFlagSet requiredFeatures)

Method summary

Modifier and TypeMethod
public com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack, ?>
a(String arg0)
createArgument(String arg0)
method_20775(String arg0)
argument(String name)
public T
a()
createRule()
method_20773()
createRule()
public void
a(dgf$c arg0, dgf$e<T> arg1)
callVisitor(GameRules$GameRuleTypeVisitor arg0, GameRules$Key<T> arg1)
method_27336(class_1928$class_4311 arg0, class_1928$class_4313<T> arg1)
accept(GameRules$Visitor consumer, GameRules$Key<T> key)
public FeatureFlagSet
b()
requiredFeatures()
method_61728()
getRequiredFeatures()