EntitySupport

public class EntitySupport

Class EntitySupport. Provides entitysupport functionality for the Hytale server.

java.lang.Object > EntitySupport

Field Summary

nominatedDisplayName

protected String nominatedDisplayName

Field nominatedDisplayName.

sensorScope

protected StdScope sensorScope

Field sensorScope.

nextBodyMotionStep

protected Instruction nextBodyMotionStep

Field nextBodyMotionStep.

nextHeadMotionStep

protected Instruction nextHeadMotionStep

Field nextHeadMotionStep.

targetPlayerActiveTasks

protected List targetPlayerActiveTasks

Field targetPlayerActiveTasks.

component

final IComponentExecutionControl component

Field component.

displayNameComponent

final DisplayNameComponent displayNameComponent

Field displayNameComponent.

displayNameMessage

final Message displayNameMessage

Field displayNameMessage.

nameplateComponent

final Nameplate nameplateComponent

Field nameplateComponent.

scope

final StdScope scope

Field scope.

healthStat

final EntityStatValue healthStat

Field healthStat.

Method Detail

EntitySupport

public public EntitySupport (final NPCEntity parent, @Nonnull final BuilderRole builder)

Method EntitySupport.

Parameters:
final NPCEntity parent
@Nonnull final BuilderRole builder

getSensorScope

public StdScope getSensorScope ()

Method getSensorScope.

getNextBodyMotionStep

public Instruction getNextBodyMotionStep ()

Method getNextBodyMotionStep.

setNextBodyMotionStep

public boolean setNextBodyMotionStep (final Instruction step)

Method setNextBodyMotionStep.

Parameters:
final Instruction step

clearNextBodyMotionStep

public void clearNextBodyMotionStep ()

Method clearNextBodyMotionStep.

getNextHeadMotionStep

public Instruction getNextHeadMotionStep ()

Method getNextHeadMotionStep.

setNextHeadMotionStep

public boolean setNextHeadMotionStep (final Instruction step)

Method setNextHeadMotionStep.

Parameters:
final Instruction step

clearNextHeadMotionStep

public void clearNextHeadMotionStep ()

Method clearNextHeadMotionStep.

postRoleBuilt

public void postRoleBuilt (@Nonnull final BuilderSupport builderSupport)

Method postRoleBuilt.

Parameters:
@Nonnull final BuilderSupport builderSupport

tick

public void tick (final float dt)

Method tick.

Parameters:
final float dt

handleNominatedDisplayName

public void handleNominatedDisplayName (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method handleNominatedDisplayName.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

nominateDisplayName

public void nominateDisplayName (@Nonnull final String displayName)

Method nominateDisplayName.

Parameters:
@Nonnull final String displayName

pickRandomDisplayName

public void pickRandomDisplayName (@Nonnull final Holder holder, final boolean override)

Method pickRandomDisplayName.

Parameters:
@Nonnull final Holder holder
final boolean override

setDisplayName

static void setDisplayName (@Nonnull final Holder holder, @Nonnull final String displayName)

Method setDisplayName.

Parameters:
@Nonnull final Holder holder
@Nonnull final String displayName

DisplayNameComponent

public new DisplayNameComponent (Message.raw((displayName != null)

Method DisplayNameComponent.

Parameters:
Message.raw((displayName != null

setRandomDisplayName

static void setRandomDisplayName (@Nonnull final Ref ref, @Nullable final String[] names, final boolean override, @Nonnull final ComponentAccessor componentAccessor)

Method setRandomDisplayName.

Parameters:
@Nonnull final Ref ref
@Nullable final String[] names
final boolean override
@Nonnull final ComponentAccessor componentAccessor

addTargetPlayerActiveTask

public void addTargetPlayerActiveTask (@Nonnull final String task)

Method addTargetPlayerActiveTask.

Parameters:
@Nonnull final String task

clearTargetPlayerActiveTasks

public void clearTargetPlayerActiveTasks ()

Method clearTargetPlayerActiveTasks.

getTargetPlayerActiveTasks

public List getTargetPlayerActiveTasks ()

Method getTargetPlayerActiveTasks.

registerDelay

public void registerDelay (@Nonnull final IComponentExecutionControl component)

Method registerDelay.

Parameters:
@Nonnull final IComponentExecutionControl component

createScope

static StdScope createScope (@Nonnull final NPCEntity entity)

Method createScope.

Parameters:
@Nonnull final NPCEntity entity

StdScope

public new StdScope (StdLib.getInstance()

Method StdScope.

Parameters:
StdLib.getInstance( StdLib.getInstance(