Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getComponentType()
- get(Ref, ComponentAccessor)
- getSensorScope()
- postRoleBuilt(BuilderSupport)
- tick(float)
- registerDelay(IComponentExecutionControl)
- addDeferredAction(EntitySupport.DeferredAction)
- tickDeferredActions(Ref, ExecutionSupport, double, Store)
- unloaded()
- createScope()
- createScope(NPCEntity)
- clone()
Class EntitySupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.EntitySupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Created on 28/02/2019
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister a deferred action to run on subsequent ticks until it signals completion.clone()static StdScopestatic StdScopecreateScope(NPCEntity entity) static EntitySupportget(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) static ComponentType<EntityStore, EntitySupport> voidpostRoleBuilt(BuilderSupport builderSupport) voidregisterDelay(IComponentExecutionControl component) Register a component that wants a delay-driven callback next tick.voidtick(float dt) Tick the per-delay callback queue.voidtickDeferredActions(Ref<EntityStore> ref, ExecutionSupport executionSupport, double dt, Store<EntityStore> store) Tick the deferred-action queue.voidunloaded()Clear pending deferred actions.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
EntitySupport
public EntitySupport()
-
-
Method Details
-
getComponentType
-
get
@Nonnull public static EntitySupport get(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
getSensorScope
-
postRoleBuilt
-
tick
public void tick(float dt) Tick the per-delay callback queue. Independent of any per-tick instruction-tree state. -
registerDelay
Register a component that wants a delay-driven callback next tick. -
addDeferredAction
Register a deferred action to run on subsequent ticks until it signals completion. -
tickDeferredActions
public void tickDeferredActions(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, double dt, @Nonnull Store<EntityStore> store) Tick the deferred-action queue. Caller supplies the populatedExecutionSupportso deferred actions see the same per-tick view as the instruction tree. -
unloaded
public void unloaded()Clear pending deferred actions. -
createScope
-
createScope
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-