Class Entity

java.lang.Object
com.github.elebras1.flecs.Entity

public class Entity extends Object
  • Method Details

    • id

      public long id()
    • world

      public Flecs world()
    • add

      public Entity add(long componentId)
    • add

      public Entity add(Entity component)
    • remove

      public Entity remove(long componentId)
    • remove

      public Entity remove(Entity component)
    • remove

      public <T> Entity remove(Class<T> componentClass)
    • has

      public boolean has(long componentId)
    • has

      public boolean has(Entity component)
    • setName

      public Entity setName(String name)
    • getName

      public String getName()
    • destruct

      public void destruct()
    • isValid

      public boolean isValid()
    • isAlive

      public boolean isAlive()
    • clear

      public void clear()
    • childOf

      public Entity childOf(long parentId)
    • childOf

      public Entity childOf(Entity parent)
    • isA

      public Entity isA(long entityId)
    • removeRelation

      public Entity removeRelation(long relation, long target)
    • set

      public <T> Entity set(T data)
    • get

      public <T> T get(long componentId)
    • get

      public <T> T get(Class<T> componentClass)
    • enable

      public void enable()
    • disable

      public void disable()
    • observe

      public FlecsObserver observe(long eventId, Runnable callback)
    • observe

      public <T> FlecsObserver observe(Class<T> eventClass, Consumer<T> callback)
    • emit

      public void emit(long eventId)
    • emit

      public void emit(long eventId, long componentId)
    • emit

      public <T> void emit(long eventId, Class<T> componentClass)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object