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$Visitor
intermediary net/minecraft/class_1928$class_4311
official dhd$c
  • Method Details

    • visit

      default <T extends GameRules.Rule<T>> void visit(GameRules.Key<T> key, GameRules.Type<T> type)
      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 visit Lnet/minecraft/world/GameRules$Visitor;visit(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
      intermediary method_20762 Lnet/minecraft/class_1928$class_4311;method_20762(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
      official a Ldhd$c;a(Ldhd$e;Ldhd$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 visitBoolean Lnet/minecraft/world/GameRules$Visitor;visitBoolean(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
      intermediary method_27329 Lnet/minecraft/class_1928$class_4311;method_27329(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
      official b Ldhd$c;b(Ldhd$e;Ldhd$f;)V
    • visitInt

      default void visitInt(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type)
      Visit an integer rule.

      Note visit(GameRules.Key, GameRules.Type) will be called before this method.

      Mappings:
      Namespace Name Mixin selector
      named visitInt Lnet/minecraft/world/GameRules$Visitor;visitInt(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
      intermediary method_27330 Lnet/minecraft/class_1928$class_4311;method_27330(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
      official c Ldhd$c;c(Ldhd$e;Ldhd$f;)V