public static interface GameRules.Visitor
Modifier and Type | Method and Description |
---|---|
default <T extends GameRules.Rule<T>> |
visit(GameRules.Key<T> key,
GameRules.Type<T> type)
Visit a game rule.
|
default void |
visitBoolean(GameRules.Key<GameRules.BooleanRule> key,
GameRules.Type<GameRules.BooleanRule> type)
Visit a boolean rule.
|
default void |
visitInt(GameRules.Key<GameRules.IntRule> key,
GameRules.Type<GameRules.IntRule> type)
Visit an integer rule.
|
default <T extends GameRules.Rule<T>> void visit(GameRules.Key<T> key, GameRules.Type<T> type)
It is expected all game rules regardless of type will be visited using this method.
default void visitBoolean(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type)
Note visit(GameRules.Key, GameRules.Type)
will be called before this method.
default void visitInt(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type)
Note visit(GameRules.Key, GameRules.Type)
will be called before this method.