Class Entity
java.lang.Object
com.github.elebras1.flecs.Entity
- Direct Known Subclasses:
EntityView
-
Method Summary
Modifier and TypeMethodDescriptionadd(long componentId) addRelation(long relation, long target) 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> T<T> T<T extends ComponentView>
TgetMutView(Class<?> componentClass) <T> TgetMutView(Class<?> componentClass, long target) getName()booleanhas(long componentId) booleanbooleaninthashCode()booleanhasRelation(long relation) booleanhasRelation(long relation, long target) longid()isA(long entityId) booleanisAlive()booleanisValid()<T> FlecsObserverbooleanowns(long componentId) booleanparent()remove(long componentId) <T> EntityremoveRelation(long relation) removeRelation(long relation, long target) <T> Entityset(T data) <T> Entityset(T data, long target) protected voidsetId(long id) protected voidtable()longtarget(long relationId) longtarget(long relationId, int index) toString()world()
-
Method Details
-
setWorld
-
setId
protected void setId(long id) -
id
public long id() -
world
-
add
-
add
-
remove
-
remove
-
remove
-
has
public boolean has(long componentId) -
has
-
has
-
setName
-
getName
-
destruct
public void destruct() -
isValid
public boolean isValid() -
isAlive
public boolean isAlive() -
clear
public void clear() -
addRelation
-
childOf
-
childOf
-
parent
-
isA
-
removeRelation
-
hasRelation
public boolean hasRelation(long relation, long target) -
removeRelation
-
hasRelation
public boolean hasRelation(long relation) -
set
-
set
-
get
public <T> T get(long componentId) -
get
-
get
-
getMutView
-
getMutView
-
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) -
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
-