Class MarkedEntitySupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.MarkedEntitySupport
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected intprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> protected Ref<EntityStore>[]protected static final ComponentType<EntityStore, NPCEntity> protected final NPCEntityprotected it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> protected Vector3d[]protected it.unimi.dsi.fastutil.objects.Object2IntMap<String> protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearMarkedEntity(int targetSlot) voidflockSetTarget(String targetSlot, Ref<EntityStore> targetRef, Store<EntityStore> store) Ref<EntityStore>[]getMarkedEntityRef(int targetSlot) getMarkedEntityRef(String targetSlot) intgetSlotName(int slot) getStoredPosition(int slot) booleanhasMarkedEntity(Ref<EntityStore> entityReference, int targetSlot) booleanhasMarkedEntityInSlot(int targetSlot) booleanhasMarkedEntityInSlot(String targetSlot) voidpostRoleBuilder(BuilderSupport support) voidsetMarkedEntity(int targetSlot, Ref<EntityStore> target) voidsetMarkedEntity(String targetSlot, Ref<EntityStore> target) voidsetTargetSlotToIgnoreForAvoidance(int targetSlotToIgnoreForAvoidance) voidunloaded()
-
Field Details
-
DEFAULT_TARGET_SLOT
- See Also:
-
NPC_COMPONENT_TYPE
-
EMPTY_TARGET_SLOT_MAP
@Nonnull private static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> EMPTY_TARGET_SLOT_MAP -
parent
-
targetSlotMappings
-
slotToNameMap
-
entityTargets
-
storedPositions
-
defaultTargetSlot
protected int defaultTargetSlot -
targetSlotToIgnoreForAvoidance
protected int targetSlotToIgnoreForAvoidance
-
-
Constructor Details
-
MarkedEntitySupport
-
-
Method Details
-
getEntityTargets
-
postRoleBuilder
-
clearMarkedEntity
public void clearMarkedEntity(int targetSlot) -
setMarkedEntity
-
setMarkedEntity
-
getMarkedEntityRef
-
getMarkedEntityRef
-
getMarkedEntitySlotCount
public int getMarkedEntitySlotCount() -
getStoredPosition
-
hasMarkedEntity
-
hasMarkedEntityInSlot
-
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
-
getSlotName
-
unloaded
public void unloaded()
-