Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- createAndAttach(Holder, BuilderEncounterManager, BuilderSupport)
- acquireExecutionSupport(Ref, ComponentAccessor)
- tick(Ref, float, Store)
- spawned(Holder)
- unloaded(Ref, ComponentAccessor)
- removed(Ref, ComponentAccessor)
- teleported(Ref, ComponentAccessor, World, World)
- getRootInstruction()
- getEncounterId()
- setEncounterId(String)
- getEncounterIndex()
- setEncounterIndex(int)
- isCleanupOnRemove()
- isBuilt()
- resetRuntime()
- clone()
- cloneSerializable()
- getInfo(ExecutionSupport, ComponentInfo)
- setContext(IAnnotatedComponent, int)
- getParent()
- getIndex()
Class EncounterManager
java.lang.Object
com.hypixel.hytale.builtin.encountermanager.EncounterManager
- All Implemented Interfaces:
Component<EntityStore>, IAnnotatedComponent, Cloneable
The runtime and persistent ECS component for an Encounter Manager.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireExecutionSupport(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) clone()static EncounterManagercreateAndAttach(Holder<EntityStore> holder, BuilderEncounterManager builder, BuilderSupport builderSupport) Builds the runtime into the holder'sEncounterManagercomponent (creating it if absent) and attaches the generic instruction-engine supports.static ComponentType<EntityStore, EncounterManager> intintgetIndex()voidgetInfo(ExecutionSupport executionSupport, ComponentInfo holder) Populates the ComponentInfo holder with any relevant information relating to this particular componentbooleanisBuilt()booleanvoidremoved(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) voidvoidsetContext(IAnnotatedComponent parent, int index) voidsetEncounterId(String encounterId) voidsetEncounterIndex(int encounterIndex) voidspawned(Holder<EntityStore> holder) voidteleported(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor, World from, World to) voidtick(Ref<EntityStore> ref, float dt, Store<EntityStore> store) Per-tick execution of the instruction tree.voidunloaded(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getLabel
-
Field Details
-
CODEC
-
-
Constructor Details
-
EncounterManager
public EncounterManager() -
EncounterManager
-
-
Method Details
-
getComponentType
-
createAndAttach
@Nonnull public static EncounterManager createAndAttach(@Nonnull Holder<EntityStore> holder, @Nonnull BuilderEncounterManager builder, @Nonnull BuilderSupport builderSupport) Builds the runtime into the holder'sEncounterManagercomponent (creating it if absent) and attaches the generic instruction-engine supports. -
acquireExecutionSupport
@Nonnull public ExecutionSupport acquireExecutionSupport(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
tick
Per-tick execution of the instruction tree. -
spawned
-
unloaded
public void unloaded(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
removed
public void removed(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
teleported
public void teleported(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor, @Nonnull World from, @Nonnull World to) -
getRootInstruction
-
getEncounterId
-
setEncounterId
-
getEncounterIndex
public int getEncounterIndex() -
setEncounterIndex
public void setEncounterIndex(int encounterIndex) -
isCleanupOnRemove
public boolean isCleanupOnRemove() -
isBuilt
public boolean isBuilt() -
resetRuntime
public void resetRuntime() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
cloneSerializable
- Specified by:
cloneSerializablein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-
getInfo
Description copied from interface:IAnnotatedComponentPopulates the ComponentInfo holder with any relevant information relating to this particular component- Specified by:
getInfoin interfaceIAnnotatedComponent- Parameters:
executionSupport- per-execution contextholder- the ComponentInfo instance to populate
-
setContext
- Specified by:
setContextin interfaceIAnnotatedComponent
-
getParent
- Specified by:
getParentin interfaceIAnnotatedComponent
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceIAnnotatedComponent
-