Class EntityTrackerSystems.EntityViewer

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.tracker.EntityTrackerSystems.EntityViewer
All Implemented Interfaces:
Component<EntityStore>, Cloneable
Enclosing class:
EntityTrackerSystems

public static class EntityTrackerSystems.EntityViewer extends Object implements Component<EntityStore>
An entity viewer is a core part of the entity tracker and is what allows things to 'see' other entities.

The most common form of entity viewer is a player.

  • Field Details

    • viewRadiusBlocks

      public int viewRadiusBlocks
      The radius that this entity viewer can see in blocks.
    • packetReceiver

      @Nonnull public IPacketReceiver packetReceiver
      A consumer to take the packets generated by the entity tracker.
    • visible

      @Nonnull public Set<Ref<EntityStore>> visible
      The entities that this entity viewer can currently see.
    • updates

      The entity updates for a sub-set of visible entities.
    • sent

      @Nonnull public it.unimi.dsi.fastutil.objects.Reference2IntMap<Ref<EntityStore>> sent
      The entities that have been sent to this viewer mapped to their network id.
    • lodExcludedCount

      public int lodExcludedCount
      Metrics for how many entities got excluded because of LOD.
    • hiddenCount

      public int hiddenCount
      Metrics for how many entities got excluded because they aren't visible to the viewer (eg. Hidden Players).
  • Constructor Details

  • Method Details