Package net.minecraft.world
Interface GameRules.Visitor
- Enclosing class:
 GameRules
public static interface GameRules.Visitor
A visitor used to visit all game rules.
- Mappings:
 Namespace Name named net/minecraft/world/GameRules$Visitorintermediary net/minecraft/class_1928$class_4311official dcs$c
- 
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends GameRules.Rule<T>>
voidvisit(GameRules.Key<T> key, GameRules.Type<T> type) Visit a game rule.default voidVisit a boolean rule.default voidVisit an integer rule. 
- 
Method Details
- 
visit
Visit a game rule.It is expected all game rules regardless of type will be visited using this method.
- Mappings:
 Namespace Name Mixin selector named visitLnet/minecraft/world/GameRules$Visitor;visit(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)Vintermediary method_20762Lnet/minecraft/class_1928$class_4311;method_20762(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vofficial aLdcs$c;a(Ldcs$e;Ldcs$f;)V
 - 
visitBoolean
default void visitBoolean(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type) Visit a boolean rule.Note
visit(GameRules.Key, GameRules.Type)will be called before this method.- Mappings:
 Namespace Name Mixin selector named visitBooleanLnet/minecraft/world/GameRules$Visitor;visitBoolean(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)Vintermediary method_27329Lnet/minecraft/class_1928$class_4311;method_27329(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vofficial bLdcs$c;b(Ldcs$e;Ldcs$f;)V
 - 
visitInt
Visit an integer rule.Note
visit(GameRules.Key, GameRules.Type)will be called before this method.- Mappings:
 Namespace Name Mixin selector named visitIntLnet/minecraft/world/GameRules$Visitor;visitInt(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)Vintermediary method_27330Lnet/minecraft/class_1928$class_4311;method_27330(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vofficial cLdcs$c;c(Ldcs$e;Ldcs$f;)V
 
 -