classpublicPriority 3
MarkedEntitySupport
com.hypixel.hytale.server.npc.role.support.MarkedEntitySupport
17
Methods
17
Public Methods
7
Fields
1
Constructors
Constants
StringDEFAULT_TARGET_SLOT= "LockedTarget"
Object2IntMap<String>EMPTY_TARGET_SLOT_MAP= new Object2IntOpenHashMap(0)
ComponentType<EntityStore, NPCEntity>NPC_COMPONENT_TYPE= NPCEntity.getComponentType()
Constructors
public
MarkedEntitySupport(NPCEntity parent)Methods
Public Methods (17)
public
void clearMarkedEntity(int targetSlot)public
void flockSetTarget(String targetSlot, Ref<EntityStore> targetRef, Store<EntityStore> store)public
Ref<EntityStore>[] getEntityTargets()public
Ref<EntityStore> getMarkedEntityRef(int targetSlot)@Nullable
public
Ref<EntityStore> getMarkedEntityRef(String targetSlot)@Nullable
public
int getMarkedEntitySlotCount()public
String getSlotName(int slot)public
Vector3d getStoredPosition(int slot)public
Ref<EntityStore> getTargetReferenceToIgnoreForAvoidance()@Nullable
public
boolean hasMarkedEntity(Ref<EntityStore> entityReference, int targetSlot)public
boolean hasMarkedEntityInSlot(String targetSlot)public
boolean hasMarkedEntityInSlot(int targetSlot)public
void postRoleBuilder(BuilderSupport support)public
void setMarkedEntity(String targetSlot, Ref<EntityStore> target)public
void setMarkedEntity(int targetSlot, Ref<EntityStore> target)public
void setTargetSlotToIgnoreForAvoidance(int targetSlotToIgnoreForAvoidance)public
void unloaded()Fields
Protected Fields (7)
protected
int defaultTargetSlotprotected
Ref<EntityStore>[] entityTargetsprotected
NPCEntity parentprotected
Int2ObjectMap<String> slotToNameMapprotected
Vector3d[] storedPositionsprotected
Object2IntMap<String> targetSlotMappingsprotected
int targetSlotToIgnoreForAvoidance