HyCodeYourTale
classpublicPriority 2

WorldSupport

com.hypixel.hytale.server.npc.role.support.WorldSupport

27

Methods

27

Public Methods

18

Fields

1

Constructors

Constants

doubleATTITUDE_CACHE_CLEAR_FREQUENCY= 0.1
ResourceType<EntityStore, Blackboard>BLACKBOARD_RESOURCE_TYPE= Blackboard.getResourceType()

Constructors

public
WorldSupport(NPCEntity parent, BuilderRole builder, BuilderSupport support)

Methods

Public Methods (27)

public
boolean consumeNewPathRequested()
publicstatic
int[] createTagSetIndexArray(String[] tagSets)
public
Attitude getAttitude(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor)
@Nonnull
public
int getAttitudeGroup()
public
String getBlockToPlace()
public
BlockTarget getCachedBlockTarget(int blockSet)
public
Vector3d getCachedSearchRayPosition(int id)
public
int getCurrentWeatherIndex(ComponentAccessor<EntityStore> componentAccessor)
public
Attitude getDefaultNPCAttitude()
public
Attitude getDefaultPlayerAttitude()
public
int getEnvironmentId(ComponentAccessor<EntityStore> componentAccessor)
public
Attitude getItemAttitude(ItemStack item)
@Nullable
public
int getItemAttitudeGroup()
public
Attitude getOverriddenAttitude(Ref<EntityStore> target)
@Nullable
public
boolean hasRequestedNewPath()
publicstatic
boolean hasTagInGroup(int group, int tag)
public
void overrideAttitude(Ref<EntityStore> target, Attitude attitude, double duration)
public
void postRoleBuilt(BuilderSupport support)
public
void requestNewPath()
public
void requireAttitudeCache()
public
void resetAllBlockSensors()
public
void resetAllCachedSearchRayPositions()
public
void resetBlockSensorFoundBlock(int blockSet)
public
void resetCachedSearchRayPosition(int id)
public
void setBlockToPlace(String block)
public
void tick(float dt)
public
void unloaded()

Fields

Protected Fields (18)

protectedInt2ObjectMap<Attitude> attitudeCache
protectedint attitudeGroup
protectedInt2ObjectMap<AttitudeMemoryEntry> attitudeOverrideMemory
protectedAttitudeView attitudeView
protectedInt2ObjectMap<BlockTarget> blockSensorCachedTargets
protectedString blockToPlace
protectedint cachedEnvironmentId
protectedint cachedWeatherIndex
protectedint changeCount
protectedAttitude defaultNPCAttitude
protectedAttitude defaultPlayerAttitude
protectedint environmentIdChangeCount
protectedint itemAttitudeGroup
protectedboolean newPathRequested
protecteddouble nextAttitudeCacheClear
protectedNPCEntity parent
protectedVector3d[] searchRayCachedPositions
protectedint weatherChangeCount

Related Classes