Interface GameRuleVisitor


public interface GameRuleVisitor
A visitor used to visit all game rules.
Mappings:
Namespace Name
named net/minecraft/world/rule/GameRuleVisitor
intermediary net/minecraft/class_4311
official esr
  • 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/rule/GameRuleVisitor;visit(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_20762 Lnet/minecraft/class_4311;method_20762(Lnet/minecraft/class_12279;)V
      official a Lesr;a(Lesn;)V
    • visitBoolean

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

      Note visit(GameRule) will be called before this method.

      Mappings:
      Namespace Name Mixin selector
      named visitBoolean Lnet/minecraft/world/rule/GameRuleVisitor;visitBoolean(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_27329 Lnet/minecraft/class_4311;method_27329(Lnet/minecraft/class_12279;)V
      official b Lesr;b(Lesn;)V
    • visitInt

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

      Note visit(GameRule) will be called before this method.

      Mappings:
      Namespace Name Mixin selector
      named visitInt Lnet/minecraft/world/rule/GameRuleVisitor;visitInt(Lnet/minecraft/world/rule/GameRule;)V
      intermediary method_27330 Lnet/minecraft/class_4311;method_27330(Lnet/minecraft/class_12279;)V
      official c Lesr;c(Lesn;)V