Skip to content

Fluid Entity Convenience Interface

Daan van Yperen edited this page Sep 17, 2016 · 3 revisions

Entity tag

E(entityId).tag("boss");
String currentTag = E(entityId).tag();

Entity groups

E(entityId)
   .group("boss")
   .groups("a","b","c")
   .removeGroup("a")
   .removeGroups("b","boss")
   .removeGroups();
ImmutableBag<String> groups = E(entityId).groups();
boolean isBoss = E(entityId).isInGroup("boss");

Delete entity

E(entityId).deleteFromWorld();
Clone this wiki locally