HyCodeYourTale
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)

protectedint defaultTargetSlot
protectedRef<EntityStore>[] entityTargets
protectedNPCEntity parent
protectedInt2ObjectMap<String> slotToNameMap
protectedVector3d[] storedPositions
protectedObject2IntMap<String> targetSlotMappings
protectedint targetSlotToIgnoreForAvoidance

Related Classes