Uses of Class
net.minecraft.world.GameRules.Type
-
Uses of GameRules.Type in net.minecraft.world
Modifier and TypeFieldDescriptionprivate static final Map
<GameRules.Key<?>, GameRules.Type<?>> GameRules.RULE_TYPES
private final Function
<GameRules.Type<T>, T> GameRules.Type.ruleFactory
Modifier and TypeMethodDescription(package private) static GameRules.Type
<GameRules.BooleanRule> GameRules.BooleanRule.create
(boolean initialValue) (package private) static GameRules.Type
<GameRules.BooleanRule> GameRules.BooleanRule.create
(boolean initialValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changeCallback) (package private) static GameRules.Type
<GameRules.IntRule> GameRules.IntRule.create
(int initialValue) (package private) static GameRules.Type
<GameRules.IntRule> GameRules.IntRule.create
(int initialValue, int min, int max, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) private static GameRules.Type
<GameRules.IntRule> GameRules.IntRule.create
(int initialValue, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) Modifier and TypeMethodDescriptionprivate static <T extends GameRules.Rule<T>>
voidGameRules.accept
(GameRules.Visitor consumer, GameRules.Key<?> key, GameRules.Type<?> type) void
GameRules.Acceptor.call
(GameRules.Visitor consumer, GameRules.Key<T> key, GameRules.Type<T> type) private static <T extends GameRules.Rule<T>>
GameRules.Key<T> GameRules.register
(String name, GameRules.Category category, GameRules.Type<T> type) default <T extends GameRules.Rule<T>>
voidGameRules.Visitor.visit
(GameRules.Key<T> key, GameRules.Type<T> type) Visit a game rule.default void
GameRules.Visitor.visitBoolean
(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type) Visit a boolean rule.default void
GameRules.Visitor.visitInt
(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type) Visit an integer rule.ModifierConstructorDescriptionBooleanRule
(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue) IntRule
(GameRules.Type<GameRules.IntRule> rule, int initialValue) Rule
(GameRules.Type<T> type) ModifierConstructorDescription(package private)
Type
(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType, Function<GameRules.Type<T>, T> ruleFactory, BiConsumer<MinecraftServer, T> changeCallback, GameRules.Acceptor<T> ruleAcceptor)