Skip to content

EntityLinkManager links in bags

Daan van Yperen edited this page Sep 24, 2016 · 2 revisions

Guard bags

You can guard entity references in containers:

public class ChildRenderable extends PooledComponent {
    @EntityId @LinkPolicy(CHECK_SOURCE_AND_TARGETS)
    public IntBag children = new IntBag();
}
Clone this wiki locally