Class Entity
java.lang.Object
com.github.elebras1.flecs.Entity
-
Method Summary
Modifier and TypeMethodDescriptionadd(long componentId) childOf(long parentId) voidvoidvoidclear()clone(boolean cloneValues) intdepth(long relationId) voiddestruct()voiddisable()disable(long componentId) <T> Entityvoidemit(long eventId) voidemit(long eventId, long componentId) <T> voidvoidenable()enable(long componentId) <T> Entitybooleanenabled(long componentId) <T> booleanboolean<T> Tget(long componentId) <T> TgetName()booleanhas(long componentId) booleaninthashCode()longid()isA(long entityId) booleanisAlive()booleanisValid()<T> FlecsObserverbooleanowns(long componentId) booleanremove(long componentId) <T> EntityremoveRelation(long relation, long target) <T> Entityset(T data) table()longtarget(long relationId, int index) 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
-
target
public long target(long relationId, int index) -
depth
public int depth(long relationId) -
owns
public boolean owns(long componentId) -
owns
-
enabled
public boolean enabled(long componentId) -
enabled
-
enable
-
enable
-
disable
-
disable
-
clone
-
lookup
-
children
-
children
-
table
-
equals
-
hashCode
-
toString
-