Class EntitySupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.EntitySupport
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class EntitySupport extends Object implements Component<EntityStore>
Created on 28/02/2019
  • Constructor Details

    • EntitySupport

      public EntitySupport()
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, EntitySupport> getComponentType()
    • get

      @Nonnull public static EntitySupport get(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor)
    • getSensorScope

      public StdScope getSensorScope()
    • postRoleBuilt

      public void postRoleBuilt(@Nonnull BuilderSupport builderSupport)
    • tick

      public void tick(float dt)
      Tick the per-delay callback queue. Independent of any per-tick instruction-tree state.
    • registerDelay

      public void registerDelay(@Nonnull IComponentExecutionControl component)
      Register a component that wants a delay-driven callback next tick.
    • addDeferredAction

      public void addDeferredAction(@Nonnull EntitySupport.DeferredAction handler)
      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 populated ExecutionSupport so deferred actions see the same per-tick view as the instruction tree.
    • unloaded

      public void unloaded()
      Clear pending deferred actions.
    • createScope

      @Nonnull public static StdScope createScope()
    • createScope

      @Nonnull public static StdScope createScope(@Nonnull NPCEntity entity)
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.