Class OrGameObjectMatcher

    • Constructor Detail

      • OrGameObjectMatcher

        public OrGameObjectMatcher​(@NotNull
                                   @NotNull java.util.Collection<GameObjectMatcher> matchers)
        Creates a new instance.
        Parameters:
        matchers - the matchers to Or
    • Method Detail

      • isMatching

        public boolean isMatching​(@NotNull
                                  @NotNull GameObject<?,​?,​?> gameObject)
        Description copied from interface: GameObjectMatcher
        Matches a GameObject.
        Specified by:
        isMatching in interface GameObjectMatcher
        Parameters:
        gameObject - the GameObject to match
        Returns:
        true if this matcher matches the given game object, otherwise false