public class EntitySystems
Class EntitySystems. Provides entitysystems functionality for the Hytale server.
java.lang.Object > EntitySystems
Field Summary
transformComponent
Field transformComponent.
chunkRef
Field chunkRef.
world
Field world.
chunkStore
Field chunkStore.
chunkComponentStore
Field chunkComponentStore.
entityChunkComponent
Field entityChunkComponent.
visibleComponent
Field visibleComponent.
dynamicLightComponent
Field dynamicLightComponent.
dynamicLight
Field dynamicLight.
update
Field update.
newSpawnComponent
Field newSpawnComponent.
ref
Field ref.
Method Detail
ClearMarker
public
ClearMarker
(@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)
Method ClearMarker.
- Parameters:
@Nonnull final ComponentTypecomponentType@Nonnull final SystemGrouppreGroup
SystemGroupDependency
new
SystemGroupDependency
(Order.AFTER, preGroup)
Method SystemGroupDependency.
- Parameters:
Order.AFTEROrder.AFTERpreGrouppreGroup
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
getDependencies
Set>
getDependencies
()
Method getDependencies.
ClearFromPrefabMarker
public
ClearFromPrefabMarker
(@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)
Method ClearFromPrefabMarker.
- Parameters:
@Nonnull final ComponentTypecomponentType@Nonnull final SystemGrouppreGroup
ClearFromWorldGenMarker
public
ClearFromWorldGenMarker
(@Nonnull final ComponentType componentType, @Nonnull final SystemGroup preGroup)
Method ClearFromWorldGenMarker.
- Parameters:
@Nonnull final ComponentTypecomponentType@Nonnull final SystemGrouppreGroup
OnLoadFromExternal
public
OnLoadFromExternal
(@Nonnull final ComponentType fromPrefab, @Nonnull final ComponentType fromWorldGen, @Nonnull final SystemGroup group)
Method OnLoadFromExternal.
- Parameters:
@Nonnull final ComponentTypefromPrefab@Nonnull final ComponentTypefromWorldGen@Nonnull final SystemGroupgroup
SystemDependency
new
SystemDependency
(Order.BEFORE, EntityStore.UUIDSystem.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFOREEntityStore.UUIDSystem.classEntityStore.UUIDSystem.class
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
DynamicLightTracker
Method DynamicLightTracker.
- Parameters:
@Nonnull final ComponentTypecomponentType
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
else
if
(!visibleComponent.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visibleComponent.newlyVisibleTo.isEmpty(!visibleComponent.newlyVisibleTo.isEmpty(
queueUpdatesFor
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final ColorLight dynamicLight, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final ColorLightdynamicLight@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo
queueRemoveFor
void
queueRemoveFor
(@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)
Method queueRemoveFor.
- Parameters:
@Nonnull final Refref@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo
NewSpawnEntityTrackerUpdate
public
NewSpawnEntityTrackerUpdate
()
Method NewSpawnEntityTrackerUpdate.
NewSpawnTick
public
NewSpawnTick
()
Method NewSpawnTick.