LegacyEntityTrackerSystems

public class LegacyEntityTrackerSystems

Class LegacyEntityTrackerSystems. Provides legacyentitytrackersystems functionality for the Hytale server.

java.lang.Object > LegacyEntityTrackerSystems

Field Summary

viewer

final EntityTrackerSystems.EntityViewer viewer

Field viewer.

entity

final LivingEntity entity

Field entity.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

statMapComponent

final EntityStatMap statMapComponent

Field statMapComponent.

predictionComponent

final PredictedProjectile predictionComponent

Field predictionComponent.

effectControllerComponent

final EffectControllerComponent effectControllerComponent

Field effectControllerComponent.

nameplateComponent

final Nameplate nameplateComponent

Field nameplateComponent.

entityUpdate

final EntityUpdate entityUpdate

Field entityUpdate.

list

final ObjectArrayList list

Field list.

update

final ComponentUpdate update

Field update.

entityScaleComponent

final EntityScaleComponent entityScaleComponent

Field entityScaleComponent.

component

final PlayerSkinComponent component

Field component.

inventory

final Inventory inventory

Field inventory.

update2

final ComponentUpdate update2

Field update2.

armor

final ItemContainer armor

Field armor.

itemInHand

final ItemStack itemInHand

Field itemInHand.

utilityItem

final ItemStack utilityItem

Field utilityItem.

world

final World world

Field world.

entityViewerComponent

final EntityTrackerSystems.EntityViewer entityViewerComponent

Field entityViewerComponent.

position

final Vector3d position

Field position.

iterator

final Iterator> iterator

Field iterator.

ref

final Ref ref

Field ref.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

otherTransformComponent

final TransformComponent otherTransformComponent

Field otherTransformComponent.

distanceSq

final double distanceSq

Field distanceSq.

maximumThickness

final double maximumThickness

Field maximumThickness.

entityViewer

final EntityTrackerSystems.EntityViewer entityViewer

Field entityViewer.

viewerRef

final Ref viewerRef

Field viewerRef.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

modelOutdated

final boolean modelOutdated

Field modelOutdated.

Method Detail

sendPlayerSelf

static void sendPlayerSelf (@Nonnull final Ref viewerRef, @Nonnull final Store store)

Method sendPlayerSelf.

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

EntityUpdates

public new EntityUpdates (null, new EntityUpdate[] { entityUpdate })

Method EntityUpdates.

Parameters:
null null
new EntityUpdate[] { entityUpdate }

clear

static boolean clear (@Nonnull final Player player, @Nonnull final Holder holder)

Method clear.

Parameters:
@Nonnull final Player player
@Nonnull final Holder holder

LegacyLODCull

public public LegacyLODCull (final ComponentType componentType)

Method LegacyLODCull.

Parameters:
final ComponentType componentType

SystemDependency

public new SystemDependency (Order.AFTER, EntityTrackerSystems.CollectVisible.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
EntityTrackerSystems.CollectVisible.class EntityTrackerSystems.CollectVisible.class

getGroup

public SystemGroup getGroup ()

Method getGroup.

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

LegacyHideFromEntity

public public LegacyHideFromEntity (final ComponentType entityViewerComponentType)

Method LegacyHideFromEntity.

Parameters:
final ComponentType entityViewerComponentType

canHideEntities

static boolean canHideEntities (final Entity entity, @Nonnull final PlayerSettings settings)

Method canHideEntities.

Parameters:
final Entity entity
@Nonnull final PlayerSettings settings

LegacyEntityModel

public public LegacyEntityModel (final ComponentType componentType)

Method LegacyEntityModel.

Parameters:
final ComponentType componentType

if

public else if (!visibleComponent.newlyVisibleTo.isEmpty()

Method if.

Parameters:
!visibleComponent.newlyVisibleTo.isEmpty( !visibleComponent.newlyVisibleTo.isEmpty(

queueUpdatesFor

static void queueUpdatesFor (final Ref ref, @Nullable final ModelComponent model, final float entityScale, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo)

Method queueUpdatesFor.

Parameters:
final Ref ref
@Nullable final ModelComponent model
final float entityScale
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo

LegacyEntitySkin

public public LegacyEntitySkin (final ComponentType visibleComponentType, final ComponentType playerSkinComponentComponentType)

Method LegacyEntitySkin.

Parameters:
final ComponentType visibleComponentType
final ComponentType playerSkinComponentComponentType

LegacyEquipment

public public LegacyEquipment (final ComponentType componentType)

Method LegacyEquipment.

Parameters:
final ComponentType componentType