Class Entity
java.lang.Object
com.github.elebras1.flecs.Entity
-
Method Summary
Modifier and TypeMethodDescriptionadd(long componentId) childOf(long parentId) voidclear()voiddestruct()voiddisable()voidemit(long eventId) voidemit(long eventId, long componentId) <T> voidvoidenable()boolean<T> Tget(long componentId) <T> TgetName()booleanhas(long componentId) booleaninthashCode()longid()isA(long entityId) booleanisAlive()booleanisValid()<T> FlecsObserverremove(long componentId) <T> EntityremoveRelation(long relation, long target) <T> Entityset(T data) toString()world()
-
Method Details
-
id
public long id() -
world
-
add
-
add
-
remove
-
remove
-
remove
-
has
public boolean has(long componentId) -
has
-
setName
-
getName
-
destruct
public void destruct() -
isValid
public boolean isValid() -
isAlive
public boolean isAlive() -
clear
public void clear() -
childOf
-
childOf
-
isA
-
removeRelation
-
set
-
get
public <T> T get(long componentId) -
get
-
enable
public void enable() -
disable
public void disable() -
observe
-
observe
-
emit
public void emit(long eventId) -
emit
public void emit(long eventId, long componentId) -
emit
-
equals
-
hashCode
-
toString
-