public class EntityTrackerSystems
Class EntityTrackerSystems. Provides entitytrackersystems functionality for the Hytale server.
java.lang.Object > EntityTrackerSystems
Field Summary
viewer
Field viewer.
networkId
Field networkId.
packet
Field packet.
visible
Field visible.
stamp
Field stamp.
viewRadiusBlocks
Field viewRadiusBlocks.
packetReceiver
Field packetReceiver.
lodExcludedCount
Field lodExcludedCount.
hiddenCount
Field hiddenCount.
transform
Field transform.
position
Field position.
entityViewer
Field entityViewer.
viewerRef
Field viewerRef.
visibleComponent
Field visibleComponent.
entityRef
Field entityRef.
effectControllerComponent
Field effectControllerComponent.
update
Field update.
removedEntities
Field removedEntities.
before
Field before.
iterator
Field iterator.
ref
Field ref.
ref2
Field ref2.
updates
Field updates.
n
Field n.
entityUpdate2
Field entityUpdate2.
entityUpdate
Field entityUpdate.
Method Detail
EntityUpdate
public
EntityUpdate
()
Method EntityUpdate.
toRemovedArray
ComponentUpdateType[]
toRemovedArray
()
Method toRemovedArray.
toUpdatesArray
ComponentUpdate[]
toUpdatesArray
()
Method toUpdatesArray.
getComponentType
EntityViewer>
getComponentType
()
Method getComponentType.
EntityViewer
Method EntityViewer.
- Parameters:
final intviewRadiusBlocksfinal IPacketReceiverpacketReceiver
Visible
public
Visible
()
Method Visible.
addViewerParallel
Method addViewerParallel.
- Parameters:
final Refreffinal EntityViewerentityViewer
getDependencies
Set>
getDependencies
()
Method getDependencies.
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
SystemGroupDependency
new
SystemGroupDependency
(Order.BEFORE, EntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUP)
Method SystemGroupDependency.
- Parameters:
Order.BEFOREOrder.BEFOREEntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUPEntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUP
SystemDependency
new
SystemDependency
(Order.AFTER, NetworkSendableSpatialSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERNetworkSendableSpatialSystem.classNetworkSendableSpatialSystem.class
EnsureVisibleComponent
public
EnsureVisibleComponent
(final ComponentType entityViewerComponentType, final ComponentType visibleComponentType)
Method EnsureVisibleComponent.
- Parameters:
final ComponentTypeentityViewerComponentTypefinal ComponentTypevisibleComponentType
AddToVisible
public
AddToVisible
(final ComponentType entityViewerComponentType, final ComponentType visibleComponentType)
Method AddToVisible.
- Parameters:
final ComponentTypeentityViewerComponentTypefinal ComponentTypevisibleComponentType
RemoveEmptyVisibleComponent
Method RemoveEmptyVisibleComponent.
- Parameters:
final ComponentTypecomponentType
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
EffectControllerSystem
public
EffectControllerSystem
(@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType effectControllerComponentType)
Method EffectControllerSystem.
- Parameters:
@Nonnull final ComponentTypevisibleComponentType@Nonnull final ComponentTypeeffectControllerComponentType
queueFullUpdate
void
queueFullUpdate
(@Nonnull final Ref ref, @Nonnull final EffectControllerComponent effectControllerComponent, @Nonnull final Map, EntityViewer> visibleTo)
Method queueFullUpdate.
- Parameters:
@Nonnull final Refref@Nonnull final EffectControllerComponenteffectControllerComponent@Nonnull final Map, EntityViewer>visibleTo
queueUpdatesFor
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final EffectControllerComponent effectControllerComponent, @Nonnull final Map, EntityViewer> visibleTo, @Nonnull final Map, EntityViewer> exclude)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final EffectControllerComponenteffectControllerComponent@Nonnull final Map, EntityViewer>visibleTo@Nonnull final Map, EntityViewer>exclude