EntityTrackerSystems

public class EntityTrackerSystems

Class EntityTrackerSystems. Provides entitytrackersystems functionality for the Hytale server.

java.lang.Object > EntityTrackerSystems

Field Summary

viewer

final EntityViewer viewer

Field viewer.

networkId

final int networkId

Field networkId.

packet

final EntityUpdates packet

Field packet.

visible

final Visible visible

Field visible.

stamp

final long stamp

Field stamp.

viewRadiusBlocks

public int viewRadiusBlocks

Field viewRadiusBlocks.

packetReceiver

public IPacketReceiver packetReceiver

Field packetReceiver.

sent

public Object2IntMap> sent

Field sent.

lodExcludedCount

public int lodExcludedCount

Field lodExcludedCount.

hiddenCount

public int hiddenCount

Field hiddenCount.

transform

final TransformComponent transform

Field transform.

position

final Vector3d position

Field position.

entityViewer

final EntityViewer entityViewer

Field entityViewer.

spatialStructure

final SpatialStructure> spatialStructure

Field spatialStructure.

results

final ObjectList> results

Field results.

viewerRef

final Ref viewerRef

Field viewerRef.

visibleComponent

final Visible visibleComponent

Field visibleComponent.

entityRef

final Ref entityRef

Field entityRef.

effectControllerComponent

final EffectControllerComponent effectControllerComponent

Field effectControllerComponent.

update

final ComponentUpdate update

Field update.

removedEntities

final IntList removedEntities

Field removedEntities.

before

final int before

Field before.

iterator

final ObjectIterator>> iterator

Field iterator.

entry

final Object2IntMap.Entry> entry

Field entry.

ref

final Ref ref

Field ref.

iterator2

final Iterator> iterator2

Field iterator2.

ref2

final Ref ref2

Field ref2.

updates

final com.hypixel.hytale.protocol.EntityUpdate[] updates

Field updates.

n

final int n

Field n.

entityUpdate2

final com.hypixel.hytale.protocol.EntityUpdate entityUpdate2

Field entityUpdate2.

entityUpdate

final com.hypixel.hytale.protocol.EntityUpdate entityUpdate

Field entityUpdate.

Method Detail

despawnAll

static boolean despawnAll (@Nonnull final Ref viewerRef, @Nonnull final Store store)

Method despawnAll.

Parameters:
@Nonnull final Ref viewerRef
@Nonnull final Store store

clear

static boolean clear (@Nonnull final Ref viewerRef, @Nonnull final Store store)

Method clear.

Parameters:
@Nonnull final Ref viewerRef
@Nonnull final Store store

EntityUpdate

public public EntityUpdate ()

Method EntityUpdate.

clone

public EntityUpdate clone ()

Method clone.

queueRemove

public void queueRemove (@Nonnull final ComponentUpdateType type)

Method queueRemove.

Parameters:
@Nonnull final ComponentUpdateType type

queueUpdate

public void queueUpdate (@Nonnull final ComponentUpdate update)

Method queueUpdate.

Parameters:
@Nonnull final ComponentUpdate update

toRemovedArray

public ComponentUpdateType[] toRemovedArray ()

Method toRemovedArray.

toUpdatesArray

public ComponentUpdate[] toUpdatesArray ()

Method toUpdatesArray.

getComponentType

public EntityViewer> getComponentType ()

Method getComponentType.

EntityViewer

public public EntityViewer (final int viewRadiusBlocks, final IPacketReceiver packetReceiver)

Method EntityViewer.

Parameters:
final int viewRadiusBlocks
final IPacketReceiver packetReceiver

Visible

public public Visible ()

Method Visible.

addViewerParallel

public void addViewerParallel (final Ref ref, final EntityViewer entityViewer)

Method addViewerParallel.

Parameters:
final Ref ref
final EntityViewer entityViewer

ClearEntityViewers

public public ClearEntityViewers (final ComponentType componentType)

Method ClearEntityViewers.

Parameters:
final ComponentType componentType

getDependencies

public Set> getDependencies ()

Method getDependencies.

getQuery

public Query getQuery ()

Method getQuery.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

SystemGroupDependency

public new SystemGroupDependency (Order.BEFORE, EntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUP)

Method SystemGroupDependency.

Parameters:
Order.BEFORE Order.BEFORE
EntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUP EntityTrackerSystems.FIND_VISIBLE_ENTITIES_GROUP

CollectVisible

public public CollectVisible (final ComponentType componentType)

Method CollectVisible.

Parameters:
final ComponentType componentType

SystemDependency

public new SystemDependency (Order.AFTER, NetworkSendableSpatialSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
NetworkSendableSpatialSystem.class NetworkSendableSpatialSystem.class

getGroup

public SystemGroup getGroup ()

Method getGroup.

ClearPreviouslyVisible

public public ClearPreviouslyVisible (final ComponentType componentType)

Method ClearPreviouslyVisible.

Parameters:
final ComponentType componentType

EnsureVisibleComponent

public public EnsureVisibleComponent (final ComponentType entityViewerComponentType, final ComponentType visibleComponentType)

Method EnsureVisibleComponent.

Parameters:
final ComponentType entityViewerComponentType
final ComponentType visibleComponentType

AddToVisible

public public AddToVisible (final ComponentType entityViewerComponentType, final ComponentType visibleComponentType)

Method AddToVisible.

Parameters:
final ComponentType entityViewerComponentType
final ComponentType visibleComponentType

RemoveEmptyVisibleComponent

public public RemoveEmptyVisibleComponent (final ComponentType componentType)

Method RemoveEmptyVisibleComponent.

Parameters:
final ComponentType componentType

RemoveVisibleComponent

public public RemoveVisibleComponent (final ComponentType componentType)

Method RemoveVisibleComponent.

Parameters:
final ComponentType componentType

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

EffectControllerSystem

public public EffectControllerSystem (@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType effectControllerComponentType)

Method EffectControllerSystem.

Parameters:
@Nonnull final ComponentType visibleComponentType
@Nonnull final ComponentType effectControllerComponentType

queueFullUpdate

static void queueFullUpdate (@Nonnull final Ref ref, @Nonnull final EffectControllerComponent effectControllerComponent, @Nonnull final Map, EntityViewer> visibleTo)

Method queueFullUpdate.

Parameters:
@Nonnull final Ref ref
@Nonnull final EffectControllerComponent effectControllerComponent
@Nonnull final Map, EntityViewer> visibleTo

queueUpdatesFor

static 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 Ref ref
@Nonnull final EffectControllerComponent effectControllerComponent
@Nonnull final Map, EntityViewer> visibleTo
@Nonnull final Map, EntityViewer> exclude

SendPackets

public public SendPackets (final ComponentType componentType)

Method SendPackets.

Parameters:
final ComponentType componentType