/** * Get entity by tag. * @return {@code E}, or {@code null} if no such tag. */ public static E withTag(String tag) { if(_processingMapper==null) throw new RuntimeException("SuperMapper system must be registered before any systems using E().");; int id=_processingMapper.getWorld().getSystem(com.artemis.managers.TagManager.class).getEntityId(tag); return id != -1 ? E(id) : null; }
/** * Get entity by tag. * @return {@code E}, or {@code null} if no such tag. */ public static E withTag(String tag) { if(_processingMapper==null) throw new RuntimeException("SuperMapper system must be registered before any systems using E().");; int id=_processingMapper.getWorld().getSystem(com.artemis.managers.TagManager.class).getEntityId(tag); return id != -1 ? E(id) : null; }