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
Method EntitySupport.
- Parameters:
final NPCEntityparent@Nonnull final BuilderRolebuilder
clearNextBodyMotionStep
public
void
clearNextBodyMotionStep
()
Method clearNextBodyMotionStep.
clearNextHeadMotionStep
public
void
clearNextHeadMotionStep
()
Method clearNextHeadMotionStep.
tick
public
void
tick
(final float dt)
Method tick.
- Parameters:
final floatdt
handleNominatedDisplayName
public
void
handleNominatedDisplayName
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method handleNominatedDisplayName.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
nominateDisplayName
public
void
nominateDisplayName
(@Nonnull final String displayName)
Method nominateDisplayName.
- Parameters:
@Nonnull final StringdisplayName
pickRandomDisplayName
Method pickRandomDisplayName.
- Parameters:
@Nonnull final Holderholderfinal booleanoverride
setDisplayName
Method setDisplayName.
- Parameters:
@Nonnull final Holderholder@Nonnull final StringdisplayName
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 Refref@Nullable final String[]namesfinal booleanoverride@Nonnull final ComponentAccessorcomponentAccessor
addTargetPlayerActiveTask
public
void
addTargetPlayerActiveTask
(@Nonnull final String task)
Method addTargetPlayerActiveTask.
- Parameters:
@Nonnull final Stringtask
clearTargetPlayerActiveTasks
public
void
clearTargetPlayerActiveTasks
()
Method clearTargetPlayerActiveTasks.
getTargetPlayerActiveTasks
public
List
getTargetPlayerActiveTasks
()
Method getTargetPlayerActiveTasks.
StdScope
public
new
StdScope
(StdLib.getInstance()
Method StdScope.
- Parameters:
StdLib.getInstance(StdLib.getInstance(