Class WorldSupport

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

public class WorldSupport extends Object implements Component<EntityStore>
  • Field Details

    • ATTITUDE_CACHE_CLEAR_FREQUENCY

      public static final double ATTITUDE_CACHE_CLEAR_FREQUENCY
      See Also:
  • Constructor Details

  • Method Details

    • getComponentType

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

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

      public void tick(float dt)
    • postRoleBuilt

      public void postRoleBuilt(@Nonnull BuilderSupport support)
    • getCachedBlockTarget

      public BlockTarget getCachedBlockTarget(int blockSet)
    • resetBlockSensorFoundBlock

      public void resetBlockSensorFoundBlock(@Nonnull Ref<EntityStore> selfRef, int blockSet)
    • resetAllBlockSensors

      public void resetAllBlockSensors(@Nonnull Ref<EntityStore> selfRef)
    • getCachedSearchRayPosition

      public org.joml.Vector3d getCachedSearchRayPosition(int id)
    • resetCachedSearchRayPosition

      public void resetCachedSearchRayPosition(int id)
    • resetAllCachedSearchRayPositions

      public void resetAllCachedSearchRayPositions()
    • setBlockToPlace

      public void setBlockToPlace(String block)
    • getBlockToPlace

      public String getBlockToPlace()
    • getDefaultPlayerAttitude

      public Attitude getDefaultPlayerAttitude()
    • getDefaultNPCAttitude

      public Attitude getDefaultNPCAttitude()
    • getAttitudeGroup

      public int getAttitudeGroup()
    • getItemAttitudeGroup

      public int getItemAttitudeGroup()
    • getAttitude

      @Nonnull public Attitude getAttitude(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getItemAttitude

      @Nullable public Attitude getItemAttitude(@Nullable ItemStack item)
    • overrideAttitude

      public void overrideAttitude(Ref<EntityStore> target, Attitude attitude, double duration)
    • getOverriddenAttitude

      @Nullable public Attitude getOverriddenAttitude(Ref<EntityStore> target)
    • requireAttitudeCache

      public void requireAttitudeCache()
    • requestNewPath

      public void requestNewPath()
    • hasRequestedNewPath

      public boolean hasRequestedNewPath()
    • consumeNewPathRequested

      public boolean consumeNewPathRequested()
    • getEnvironmentId

      public int getEnvironmentId(@Nonnull Ref<EntityStore> selfRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • getCurrentWeatherIndex

      public int getCurrentWeatherIndex(@Nonnull Ref<EntityStore> selfRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • hasTagInGroup

      public static boolean hasTagInGroup(int group, int tag)
    • isGroupMember

      public static boolean isGroupMember(int parentRoleIndex, @Nonnull Ref<EntityStore> ref, @Nullable int[] groups, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • isGroupMember

      public static boolean isGroupMember(int parentRoleIndex, @Nullable Ref<EntityStore> ref, int group, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • createTagSetIndexArray

      public static int[] createTagSetIndexArray(@Nullable String[] tagSets)
    • unloaded

      public void unloaded(@Nonnull Ref<EntityStore> selfRef)
    • clone

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