Class EntityCollisionProvider

java.lang.Object
com.hypixel.hytale.server.npc.sensorinfo.InfoProviderBase
com.hypixel.hytale.server.npc.sensorinfo.EntityCollisionProvider
All Implemented Interfaces:
InfoProvider

public class EntityCollisionProvider extends InfoProviderBase
Exposes a per-tick EntityHit list to downstream actions.
  • Constructor Details

    • EntityCollisionProvider

      public EntityCollisionProvider()
  • Method Details

    • populate

      public boolean populate(@Nonnull List<EntityHit> hits, int hitCount)
    • clear

      public void clear()
    • getHitCount

      public int getHitCount()
    • getHit

      @Nonnull public EntityHit getHit(int i)
    • getPositionProvider

      @Nullable public IPositionProvider getPositionProvider()
      Description copied from interface: InfoProvider
      We provide direct access to the position provider as it's the most frequently used provider and is used in a very large number of actions and motions.
      Returns:
      the position provider.
    • hasPosition

      public boolean hasPosition()