Interface Destructible

All Known Subinterfaces:
Asset, TextureBase
All Known Implementing Classes:
AnimationData, Application, AssetPool, AssetPoolEventDispatcher, AudioDevice, AudioPlayer, AudioSource, AudioSourcePool, BorderImage, ButtonNode, CameraControlData, CameraData, Component, ComponentManager, DynamicText, ECSManager, Entity, EntityManager, EntityQuery, EntityQueryPool, EventDispatcher, Font, FontPool, FrameBufferObject, FrameNode, Gamepad, GridGroup, Image, ImageNode, ImagePool, Input, LayoutNode, LayoutNodeStyle, ModEntry, ModManager, MultiTileRenderer, Node, NodeEventDispatcher, NodeRoot, NodeStyle, NodeStyleBase, ParticleBurstEmitter, ParticleEmitter, ParticleFlowEmitter, ParticleRenderer, RectRenderer, Renderer, Scene, Shader, ShaderPool, ShaderProgram, SimpleEventDispatcher, SpriteRenderer, StyleSheet, StyleSheetPool, SystemManager, TextAssetPool, TextInputNode, TextNode, Texture, TextureArrayLayer, TexturePool, TileRenderer, Timer.Interval, Timer.RandomInterval, Timer.TimedAction, Timer.Timeout, TooltipNode, Transform, VertexArrayObject, VertexBufferObject, Window, World

public interface Destructible
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Destroys this object.
    static <D extends Destructible>
    void
    destroyAll(Collection<D> destructibles)
    Destroys all objects in a collection and clears the collection.
  • Method Details

    • destroy

      void destroy()
      Destroys this object.
    • destroyAll

      static <D extends Destructible> void destroyAll(Collection<D> destructibles)
      Destroys all objects in a collection and clears the collection. This method can also be used for objects that remove themselves from the collection during their destruction process, as it will clone and clear the original collection before iterating over it.
      Type Parameters:
      D - The type of objects in the collection
      Parameters:
      destructibles - The objects to destroy