Class GraphicsObjects


  • public class GraphicsObjects
    extends java.lang.Object
    This class provides methods to retrieve all graphics objects or a filtered list of graphics objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphicsObjects()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<GraphicsObject> all()
      Retrieves a list of all graphics objects currently active in the game.
      static java.util.List<GraphicsObject> all​(java.util.function.Predicate<GraphicsObject> predicate)
      Returns a list of graphics objects that meet the given predicate condition.
      • Methods inherited from class java.lang.Object

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

      • GraphicsObjects

        public GraphicsObjects()
    • Method Detail

      • all

        public static java.util.List<GraphicsObject> all()
        Retrieves a list of all graphics objects currently active in the game.
        Returns:
        the list of graphics objects
      • all

        public static java.util.List<GraphicsObject> all​(java.util.function.Predicate<GraphicsObject> predicate)
        Returns a list of graphics objects that meet the given predicate condition.
        Parameters:
        predicate - the condition to filter the graphics objects
        Returns:
        the list of graphics objects that satisfy the predicate condition