接口 GameRules.Visitor
-
- 封闭类:
- GameRules
public static interface GameRules.VisitorA visitor used to visit all game rules.- Mappings:
Namespace Name official bvn$cintermediary net/minecraft/class_1928$class_4311named net/minecraft/world/GameRules$Visitor
-
-
方法概要
所有方法 实例方法 默认方法 修饰符和类型 方法 说明 default <T extends GameRules.Rule<T>>
voidvisit(GameRules.Key<T> key, GameRules.Type<T> type)Visit a game rule.default voidvisitBoolean(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type)Visit a boolean rule.default voidvisitInt(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type)Visit an integer rule.
-
-
-
方法详细资料
-
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 official aLbvn$c;a(Lbvn$e;Lbvn$f;)Vintermediary method_20762Lnet/minecraft/class_1928$class_4311;method_20762(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vnamed visitLnet/minecraft/world/GameRules$Visitor;visit(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)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 official bLbvn$c;b(Lbvn$e;Lbvn$f;)Vintermediary method_27329Lnet/minecraft/class_1928$class_4311;method_27329(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vnamed visitBooleanLnet/minecraft/world/GameRules$Visitor;visitBoolean(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)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 official cLbvn$c;c(Lbvn$e;Lbvn$f;)Vintermediary method_27330Lnet/minecraft/class_1928$class_4311;method_27330(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vnamed visitIntLnet/minecraft/world/GameRules$Visitor;visitInt(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
-
-