Class EntitySupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.EntitySupport
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<IComponentExecutionControl> protected final String[]protected Instructionprotected Instructionprotected Stringprotected final NPCEntityprotected StdScope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidstatic StdScopecreateScope(NPCEntity entity) voidhandleNominatedDisplayName(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidnominateDisplayName(String displayName) voidpickRandomDisplayName(Holder<EntityStore> holder, boolean override) voidpickRandomDisplayName(Ref<EntityStore> ref, boolean override, ComponentAccessor<EntityStore> componentAccessor) voidpostRoleBuilt(BuilderSupport builderSupport) voidregisterDelay(IComponentExecutionControl component) static voidsetDisplayName(Holder<EntityStore> holder, String displayName) static voidsetDisplayName(Holder<EntityStore> holder, String displayName, boolean override) static voidsetDisplayName(Ref<EntityStore> ref, String displayName, boolean override, ComponentAccessor<EntityStore> componentAccessor) static voidsetDisplayName(Ref<EntityStore> ref, String displayName, ComponentAccessor<EntityStore> componentAccessor) booleanbooleanstatic voidsetRandomDisplayName(Ref<EntityStore> ref, String[] names, boolean override, ComponentAccessor<EntityStore> componentAccessor) voidtick(float dt)
-
Field Details
-
parent
-
displayNames
-
nominatedDisplayName
-
sensorScope
-
nextBodyMotionStep
-
nextHeadMotionStep
-
delayingComponents
-
targetPlayerActiveTasks
-
-
Constructor Details
-
EntitySupport
-
-
Method Details
-
getSensorScope
-
getNextBodyMotionStep
-
setNextBodyMotionStep
-
clearNextBodyMotionStep
public void clearNextBodyMotionStep() -
getNextHeadMotionStep
-
setNextHeadMotionStep
-
clearNextHeadMotionStep
public void clearNextHeadMotionStep() -
postRoleBuilt
-
tick
public void tick(float dt) -
handleNominatedDisplayName
public void handleNominatedDisplayName(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
nominateDisplayName
-
pickRandomDisplayName
-
setDisplayName
-
setDisplayName
public static void setDisplayName(@Nonnull Holder<EntityStore> holder, @Nullable String displayName, boolean override) -
pickRandomDisplayName
public void pickRandomDisplayName(@Nonnull Ref<EntityStore> ref, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setRandomDisplayName
public static void setRandomDisplayName(@Nonnull Ref<EntityStore> ref, @Nullable String[] names, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setDisplayName
public static void setDisplayName(@Nonnull Ref<EntityStore> ref, @Nonnull String displayName, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setDisplayName
public static void setDisplayName(@Nonnull Ref<EntityStore> ref, @Nullable String displayName, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addTargetPlayerActiveTask
-
clearTargetPlayerActiveTasks
public void clearTargetPlayerActiveTasks() -
getTargetPlayerActiveTasks
-
registerDelay
-
createScope
-