Class MarkedEntitySupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.MarkedEntitySupport

public class MarkedEntitySupport extends Object
  • Field Details

    • DEFAULT_TARGET_SLOT

      public static final String DEFAULT_TARGET_SLOT
      See Also:
    • NPC_COMPONENT_TYPE

      @Nullable protected static final ComponentType<EntityStore,NPCEntity> NPC_COMPONENT_TYPE
    • EMPTY_TARGET_SLOT_MAP

      @Nonnull private static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> EMPTY_TARGET_SLOT_MAP
    • parent

      protected final NPCEntity parent
    • targetSlotMappings

      protected it.unimi.dsi.fastutil.objects.Object2IntMap<String> targetSlotMappings
    • slotToNameMap

      @Nullable protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> slotToNameMap
    • entityTargets

      protected Ref<EntityStore>[] entityTargets
    • storedPositions

      @Nullable protected Vector3d[] storedPositions
    • defaultTargetSlot

      protected int defaultTargetSlot
    • targetSlotToIgnoreForAvoidance

      protected int targetSlotToIgnoreForAvoidance
  • Constructor Details

    • MarkedEntitySupport

      public MarkedEntitySupport(NPCEntity parent)
  • Method Details

    • getEntityTargets

      public Ref<EntityStore>[] getEntityTargets()
    • postRoleBuilder

      public void postRoleBuilder(@Nonnull BuilderSupport support)
    • clearMarkedEntity

      public void clearMarkedEntity(int targetSlot)
    • setMarkedEntity

      public void setMarkedEntity(String targetSlot, Ref<EntityStore> target)
    • setMarkedEntity

      public void setMarkedEntity(int targetSlot, @Nullable Ref<EntityStore> target)
    • getMarkedEntityRef

      @Nullable public Ref<EntityStore> getMarkedEntityRef(String targetSlot)
    • getMarkedEntityRef

      @Nullable public Ref<EntityStore> getMarkedEntityRef(int targetSlot)
    • getMarkedEntitySlotCount

      public int getMarkedEntitySlotCount()
    • getStoredPosition

      public Vector3d getStoredPosition(int slot)
    • hasMarkedEntity

      public boolean hasMarkedEntity(@Nonnull Ref<EntityStore> entityReference, int targetSlot)
    • hasMarkedEntityInSlot

      public boolean hasMarkedEntityInSlot(String targetSlot)
    • hasMarkedEntityInSlot

      public boolean hasMarkedEntityInSlot(int targetSlot)
    • flockSetTarget

      public void flockSetTarget(@Nonnull String targetSlot, @Nullable Ref<EntityStore> targetRef, @Nonnull Store<EntityStore> store)
    • setTargetSlotToIgnoreForAvoidance

      public void setTargetSlotToIgnoreForAvoidance(int targetSlotToIgnoreForAvoidance)
    • getTargetReferenceToIgnoreForAvoidance

      @Nullable public Ref<EntityStore> getTargetReferenceToIgnoreForAvoidance()
    • getSlotName

      public String getSlotName(int slot)
    • unloaded

      public void unloaded()