Package com.hypixel.hytale.component
Class CommandBuffer<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.CommandBuffer<ECS_TYPE>
- All Implemented Interfaces:
ComponentAccessor<ECS_TYPE>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) addComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType, T component) voidaddEntities(Holder<ECS_TYPE>[] holders, int holderStart, Ref<ECS_TYPE>[] refs, int refStart, int length, AddReason reason) addEntities(Holder<ECS_TYPE>[] holders, AddReason reason) (package private) voidconsume()(package private) booleancopyEntity(Ref<ECS_TYPE> ref, Holder<ECS_TYPE> target) ensureAndGetComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) ensureComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) fork()getArchetype(Ref<ECS_TYPE> ref) getComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) getResource(ResourceType<ECS_TYPE, T> resourceType) getStore()<Event extends EcsEvent>
voidinvoke(EntityEventType<ECS_TYPE, Event> systemType, Ref<ECS_TYPE> ref, Event param) <Event extends EcsEvent>
voidinvoke(WorldEventType<ECS_TYPE, Event> systemType, Event param) <Event extends EcsEvent>
void<Event extends EcsEvent>
voidinvoke(Event param) voidmergeParallel(CommandBuffer<ECS_TYPE> commandBuffer) putComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType, T component) removeComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) removeEntity(Ref<ECS_TYPE> ref, Holder<ECS_TYPE> target, RemoveReason reason) voidremoveEntity(Ref<ECS_TYPE> ref, RemoveReason reason) replaceComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType, T component) voidbooleanprivate voidtestRemovedTracked(Ref<ECS_TYPE> ref) (package private) voidtryRemoveComponent(Ref<ECS_TYPE> ref, ComponentType<ECS_TYPE, T> componentType) voidtryRemoveEntity(Ref<ECS_TYPE> ref, RemoveReason reason) void
-
Field Details
-
store
-
queue
-
trackedRef
-
trackedRefRemoved
private boolean trackedRefRemoved -
parentBuffer
-
thread
-
-
Constructor Details
-
CommandBuffer
-
-
Method Details
-
getStore
-
run
-
getComponent
public <T extends Component<ECS_TYPE>> T getComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType) - Specified by:
getComponentin interfaceComponentAccessor<ECS_TYPE>
-
getArchetype
- Specified by:
getArchetypein interfaceComponentAccessor<ECS_TYPE>
-
getResource
@Nonnull public <T extends Resource<ECS_TYPE>> T getResource(@Nonnull ResourceType<ECS_TYPE, T> resourceType) - Specified by:
getResourcein interfaceComponentAccessor<ECS_TYPE>
-
getExternalData
- Specified by:
getExternalDatain interfaceComponentAccessor<ECS_TYPE>
-
addEntities
@Nonnull public Ref<ECS_TYPE>[] addEntities(@Nonnull Holder<ECS_TYPE>[] holders, @Nonnull AddReason reason) - Specified by:
addEntitiesin interfaceComponentAccessor<ECS_TYPE>
-
addEntity
@Nonnull public Ref<ECS_TYPE> addEntity(@Nonnull Holder<ECS_TYPE> holder, @Nonnull AddReason reason) - Specified by:
addEntityin interfaceComponentAccessor<ECS_TYPE>
-
addEntities
-
addEntity
-
copyEntity
-
tryRemoveEntity
-
removeEntity
-
removeEntity
@Nonnull public Holder<ECS_TYPE> removeEntity(@Nonnull Ref<ECS_TYPE> ref, @Nonnull Holder<ECS_TYPE> target, @Nonnull RemoveReason reason) - Specified by:
removeEntityin interfaceComponentAccessor<ECS_TYPE>
-
ensureComponent
-
ensureAndGetComponent
@Nonnull public <T extends Component<ECS_TYPE>> T ensureAndGetComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType) - Specified by:
ensureAndGetComponentin interfaceComponentAccessor<ECS_TYPE>
-
addComponent
@Nonnull public <T extends Component<ECS_TYPE>> T addComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType) - Specified by:
addComponentin interfaceComponentAccessor<ECS_TYPE>
-
addComponent
public <T extends Component<ECS_TYPE>> void addComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType, @Nonnull T component) - Specified by:
addComponentin interfaceComponentAccessor<ECS_TYPE>
-
replaceComponent
-
removeComponent
public <T extends Component<ECS_TYPE>> void removeComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType) - Specified by:
removeComponentin interfaceComponentAccessor<ECS_TYPE>
-
tryRemoveComponent
public <T extends Component<ECS_TYPE>> void tryRemoveComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType) - Specified by:
tryRemoveComponentin interfaceComponentAccessor<ECS_TYPE>
-
putComponent
public <T extends Component<ECS_TYPE>> void putComponent(@Nonnull Ref<ECS_TYPE> ref, @Nonnull ComponentType<ECS_TYPE, T> componentType, @Nonnull T component) - Specified by:
putComponentin interfaceComponentAccessor<ECS_TYPE>
-
invoke
- Specified by:
invokein interfaceComponentAccessor<ECS_TYPE>
-
invoke
public <Event extends EcsEvent> void invoke(@Nonnull EntityEventType<ECS_TYPE, Event> systemType, @Nonnull Ref<ECS_TYPE> ref, @Nonnull Event param) - Specified by:
invokein interfaceComponentAccessor<ECS_TYPE>
-
invoke
- Specified by:
invokein interfaceComponentAccessor<ECS_TYPE>
-
invoke
public <Event extends EcsEvent> void invoke(@Nonnull WorldEventType<ECS_TYPE, Event> systemType, @Nonnull Event param) - Specified by:
invokein interfaceComponentAccessor<ECS_TYPE>
-
track
-
testRemovedTracked
-
consumeWasTrackedRefRemoved
boolean consumeWasTrackedRefRemoved() -
consume
void consume() -
fork
-
mergeParallel
-
setThread
public boolean setThread() -
validateEmpty
public void validateEmpty()
-