public E rename2(boolean value) { mappers.mRename2.set(entityId, value); return this; } }
public E flag(boolean value) { mappers.mFlag.set(entityId, value); return this; }
/** * Create or remove a component from an entity. * * Does nothing if already removed or created respectively. * * @param entityId Entity id to change. * @param value {@code true} to create component (if missing), {@code false} to remove (if exists). * @return the instance of the component, or {@code null} if removed. */ public A set(int entityId, boolean value) { return mapper.set(entityId, value); }
/** * Create or remove a component from an entity. * * Does nothing if already removed or created respectively. * * @param entityId Entity id to change. * @param value {@code true} to create component (if missing), {@code false} to remove (if exists). * @return the instance of the component, or {@code null} if removed. */ public A set(int entityId, boolean value) { return mapper.set(entityId, value); }
/** * Create or remove a component from an entity. * * Does nothing if already removed or created respectively. * * @param entity Entity to change. * @param value {@code true} to create component (if missing), {@code false} to remove (if exists). * @return the instance of the component, or {@code null} if removed. */ public A set(Entity entity, boolean value) { return mapper.set(entity.getId(), value); }
/** * Create or remove a component from an entity. * * Does nothing if already removed or created respectively. * * @param entity Entity to change. * @param value {@code true} to create component (if missing), {@code false} to remove (if exists). * @return the instance of the component, or {@code null} if removed. */ public A set(Entity entity, boolean value) { return mapper.set(entity.getId(), value); }