Class GameObjectMatchers

    • Constructor Detail

      • GameObjectMatchers

        public GameObjectMatchers()
    • Method Detail

      • getMatcher

        @Nullable
        public @Nullable GameObjectMatcher getMatcher​(@NotNull
                                                      @NotNull java.lang.String... ids)
        Returns a matcher by id; returns null if the matcher does not exist.
        Parameters:
        ids - the ids to find
        Returns:
        the matcher, or null if no such matcher exists
      • getMatcherWarn

        @Nullable
        public @Nullable GameObjectMatcher getMatcherWarn​(@NotNull
                                                          @NotNull ErrorViewCollector errorViewCollector,
                                                          @NotNull
                                                          @NotNull java.lang.String... ids)
        Returns a matcher by id; prints a warning if the matcher does not exist.
        Parameters:
        errorViewCollector - the error view collector to use
        ids - the ids to find
        Returns:
        the matcher, or null if no such matcher exists
      • getFilters

        @NotNull
        public @NotNull java.util.Collection<NamedGameObjectMatcher> getFilters()
        Return all known game object matchers that should be used as filters.
        Returns:
        the filter game object matches
      • addGameObjectMatcher

        public void addGameObjectMatcher​(@NotNull
                                         @NotNull NamedGameObjectMatcher gameObjectMatcher)
        Adds a new GameObjectMatcher.
        Parameters:
        gameObjectMatcher - the game object matcher to add