Class MutableNameGameObjectMatcher

    • Constructor Summary

      Constructors 
      Constructor Description
      MutableNameGameObjectMatcher​(@NotNull java.lang.String name)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getName()
      Returns the archetype name matched by this matcher.
      boolean isMatching​(@NotNull GameObject<?,​?,​?> gameObject)
      Matches a GameObject.
      void setName​(@NotNull java.lang.String name)
      Sets the archetype name to match.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableNameGameObjectMatcher

        public MutableNameGameObjectMatcher​(@NotNull
                                            @NotNull java.lang.String name)
        Creates a new instance.
        Parameters:
        name - the archetype name to match against
    • 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
      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Returns the archetype name matched by this matcher.
        Returns:
        the archetype name matched
      • setName

        public void setName​(@NotNull
                            @NotNull java.lang.String name)
        Sets the archetype name to match.
        Parameters:
        name - the archetype name to match against