Interface Visitor


public interface Visitor
A visitor used to visit all game rules.
Mappings:
Namespace Name
named net/minecraft/world/Visitor
intermediary net/minecraft/class_4311
official esm
  • Method Details

    • visit

      default <T> void visit(GameRule<T> rule)
      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/Visitor;visit(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_20762 Lnet/minecraft/class_4311;method_20762(Lnet/minecraft/class_12279;)V
      official a Lesm;a(Lesi;)V
    • visitBoolean

      default void visitBoolean(GameRule<Boolean> gameRule)
      Visit a boolean rule.

      Note

      invalid reference
      #visit(GameRules.Key, GameRules.Type)
      will be called before this method.
      Mappings:
      Namespace Name Mixin selector
      named visitBoolean Lnet/minecraft/world/Visitor;visitBoolean(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_27329 Lnet/minecraft/class_4311;method_27329(Lnet/minecraft/class_12279;)V
      official b Lesm;b(Lesi;)V
    • visitInt

      default void visitInt(GameRule<Integer> gameRule)
      Visit an integer rule.

      Note

      invalid reference
      #visit(GameRules.Key, GameRules.Type)
      will be called before this method.
      Mappings:
      Namespace Name Mixin selector
      named visitInt Lnet/minecraft/world/Visitor;visitInt(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_27330 Lnet/minecraft/class_4311;method_27330(Lnet/minecraft/class_12279;)V
      official c Lesm;c(Lesi;)V