MarkedEntitySupport

public class MarkedEntitySupport

Class MarkedEntitySupport. Provides markedentitysupport functionality for the Hytale server.

java.lang.Object > MarkedEntitySupport

Field Summary

targetSlotMappings

protected Object2IntMap targetSlotMappings

Field targetSlotMappings.

slotToNameMap

protected Int2ObjectMap slotToNameMap

Field slotToNameMap.

entityTargets

protected Ref[] entityTargets

Field entityTargets.

storedPositions

protected Vector3d[] storedPositions

Field storedPositions.

defaultTargetSlot

protected int defaultTargetSlot

Field defaultTargetSlot.

targetSlotToIgnoreForAvoidance

protected int targetSlotToIgnoreForAvoidance

Field targetSlotToIgnoreForAvoidance.

slotMappings

final Object2IntMap slotMappings

Field slotMappings.

slot

final int slot

Field slot.

ref

final Ref ref

Field ref.

parentRef

final Ref parentRef

Field parentRef.

flockReference

final Ref flockReference

Field flockReference.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

Method Detail

MarkedEntitySupport

public public MarkedEntitySupport (final NPCEntity parent)

Method MarkedEntitySupport.

Parameters:
final NPCEntity parent

getEntityTargets

public Ref[] getEntityTargets ()

Method getEntityTargets.

postRoleBuilder

public void postRoleBuilder (@Nonnull final BuilderSupport support)

Method postRoleBuilder.

Parameters:
@Nonnull final BuilderSupport support

clearMarkedEntity

public void clearMarkedEntity (final int targetSlot)

Method clearMarkedEntity.

Parameters:
final int targetSlot

setMarkedEntity

public void setMarkedEntity (final String targetSlot, final Ref target)

Method setMarkedEntity.

Parameters:
final String targetSlot
final Ref target

getMarkedEntityRef

public Ref getMarkedEntityRef (final String targetSlot)

Method getMarkedEntityRef.

Parameters:
final String targetSlot

getMarkedEntitySlotCount

public int getMarkedEntitySlotCount ()

Method getMarkedEntitySlotCount.

getStoredPosition

public Vector3d getStoredPosition (final int slot)

Method getStoredPosition.

Parameters:
final int slot

hasMarkedEntity

public boolean hasMarkedEntity (@Nonnull final Ref entityReference, final int targetSlot)

Method hasMarkedEntity.

Parameters:
@Nonnull final Ref entityReference
final int targetSlot

hasMarkedEntityInSlot

public boolean hasMarkedEntityInSlot (final String targetSlot)

Method hasMarkedEntityInSlot.

Parameters:
final String targetSlot

flockSetTarget

public void flockSetTarget (@Nonnull final String targetSlot, @Nullable final Ref targetRef, @Nonnull final Store store)

Method flockSetTarget.

Parameters:
@Nonnull final String targetSlot
@Nullable final Ref targetRef
@Nonnull final Store store

setTargetSlotToIgnoreForAvoidance

public void setTargetSlotToIgnoreForAvoidance (final int targetSlotToIgnoreForAvoidance)

Method setTargetSlotToIgnoreForAvoidance.

Parameters:
final int targetSlotToIgnoreForAvoidance

getTargetReferenceToIgnoreForAvoidance

public Ref getTargetReferenceToIgnoreForAvoidance ()

Method getTargetReferenceToIgnoreForAvoidance.

getSlotName

public String getSlotName (final int slot)

Method getSlotName.

Parameters:
final int slot

unloaded

public void unloaded ()

Method unloaded.