Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- get(Ref, ComponentAccessor)
- tick(float)
- postRoleBuilt(BuilderSupport)
- getCachedBlockTarget(int)
- resetBlockSensorFoundBlock(Ref, int)
- resetAllBlockSensors(Ref)
- getCachedSearchRayPosition(int)
- resetCachedSearchRayPosition(int)
- resetAllCachedSearchRayPositions()
- setBlockToPlace(String)
- getBlockToPlace()
- getDefaultPlayerAttitude()
- getDefaultNPCAttitude()
- getAttitudeGroup()
- getItemAttitudeGroup()
- getAttitude(Ref, Ref, ComponentAccessor)
- getItemAttitude(ItemStack)
- overrideAttitude(Ref, Attitude, double)
- getOverriddenAttitude(Ref)
- requireAttitudeCache()
- requestNewPath()
- hasRequestedNewPath()
- consumeNewPathRequested()
- getEnvironmentId(Ref, ComponentAccessor)
- getCurrentWeatherIndex(Ref, ComponentAccessor)
- hasTagInGroup(int, int)
- isGroupMember(int, Ref, int[], ComponentAccessor)
- isGroupMember(int, Ref, int, ComponentAccessor)
- createTagSetIndexArray(String[])
- unloaded(Ref)
- clone()
Class WorldSupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.WorldSupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic int[]createTagSetIndexArray(String[] tagSets) static WorldSupportget(Ref<EntityStore> ref, ComponentAccessor<EntityStore> accessor) getAttitude(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) intgetCachedBlockTarget(int blockSet) org.joml.Vector3dgetCachedSearchRayPosition(int id) static ComponentType<EntityStore, WorldSupport> intgetCurrentWeatherIndex(Ref<EntityStore> selfRef, ComponentAccessor<EntityStore> componentAccessor) intgetEnvironmentId(Ref<EntityStore> selfRef, ComponentAccessor<EntityStore> componentAccessor) getItemAttitude(ItemStack item) intgetOverriddenAttitude(Ref<EntityStore> target) booleanstatic booleanhasTagInGroup(int group, int tag) static booleanisGroupMember(int parentRoleIndex, Ref<EntityStore> ref, int[] groups, ComponentAccessor<EntityStore> componentAccessor) static booleanisGroupMember(int parentRoleIndex, Ref<EntityStore> ref, int group, ComponentAccessor<EntityStore> componentAccessor) voidoverrideAttitude(Ref<EntityStore> target, Attitude attitude, double duration) voidpostRoleBuilt(BuilderSupport support) voidvoidvoidresetAllBlockSensors(Ref<EntityStore> selfRef) voidvoidresetBlockSensorFoundBlock(Ref<EntityStore> selfRef, int blockSet) voidresetCachedSearchRayPosition(int id) voidsetBlockToPlace(String block) voidtick(float dt) voidunloaded(Ref<EntityStore> selfRef) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
ATTITUDE_CACHE_CLEAR_FREQUENCY
public static final double ATTITUDE_CACHE_CLEAR_FREQUENCY- See Also:
-
-
Constructor Details
-
WorldSupport
-
-
Method Details
-
getComponentType
-
get
@Nonnull public static WorldSupport get(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> accessor) -
tick
public void tick(float dt) -
postRoleBuilt
-
getCachedBlockTarget
-
resetBlockSensorFoundBlock
-
resetAllBlockSensors
-
getCachedSearchRayPosition
public org.joml.Vector3d getCachedSearchRayPosition(int id) -
resetCachedSearchRayPosition
public void resetCachedSearchRayPosition(int id) -
resetAllCachedSearchRayPositions
public void resetAllCachedSearchRayPositions() -
setBlockToPlace
-
getBlockToPlace
-
getDefaultPlayerAttitude
-
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
-
overrideAttitude
-
getOverriddenAttitude
-
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
-
unloaded
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-