HyCodeYourTale
classpublicPriority 3

BuilderSupport

com.hypixel.hytale.server.npc.asset.builder.BuilderSupport

73

Methods

73

Public Methods

29

Fields

1

Constructors

Constructors

public
BuilderSupport(BuilderManager builderManager, NPCEntity npcEntity, Holder<EntityStore> holder, ExecutionContext executionContext, Builder<?> roleBuilder, RoleStats roleStats)

Methods

Public Methods (73)

public
void addComponentLocalStateMachine(int defaultState)
public
boolean[] allocateFlags()
public
Vector3d[] allocatePositionSlots()
@Nullable
public
Vector3d[] allocateSearchRayPositionSlots()
@Nullable
public
Tickable[] allocateTimers()
@Nullable
public
Alarm getAlarm(String name)
public
int getBeaconMessageSlot(String name)
public
Object2IntMap<String> getBeaconSlotMappings()
@Nullable
public
IntSet getBlockChangeSets(BlockEventType type)
@Nullable
public
int getBlockEventSlot(BlockEventType type, int blockSet, double maxRange, boolean player)
public
IntList getBlockTypeBlackboardBlockSets()
@Nonnull
public
BuilderManager getBuilderManager()
public
int getComponentIndex()
public
Int2IntMap getComponentLocalStateMachines()
public
ComponentContext getCurrentComponentContext()
public
InstructionType getCurrentInstructionContext()
public
String getCurrentStateName()
@Nullable
public
NPCEntity getEntity()
@Nonnull
public
int getEntityEventSlot(EntityEventType type, int npcGroup, double maxRange, boolean player)
public
IntSet getEventNPCGroups(EntityEventType type)
@Nullable
public
ExecutionContext getExecutionContext()
public
int getFlagSlot(String name)
public
Scope getGlobalScope()
public
Holder<EntityStore> getHolder()
public
int getInstructionSlot(String name)
public
Instruction[] getInstructionSlotMappings()
@Nonnull
public
BitSet getLocalStateMachineAutoResetStates()
public
StatePair getMappedStatePair(int index)
@Nonnull
public
EventSlotMapper<BlockEventType> getNPCBlockEventSlotMapper()
public
EventSlotMapper<EntityEventType> getNPCEntityEventSlotMapper()
public
int getNextAttackIndex()
public
int getParameterSlot(String name)
public
EventSlotMapper<BlockEventType> getPlayerBlockEventSlotMapper()
public
EventSlotMapper<EntityEventType> getPlayerEntityEventSlotMapper()
public
int getPositionSlot(String name)
public
RoleStats getRoleStats()
public
int getSearchRaySlot(String name)
public
StdScope getSensorScope()
@Nonnull
public
StateEvaluator getStateEvaluator()
public
StateMappingHelper getStateHelper()
public
int getTargetSlot(String name)
public
Object2IntMap<String> getTargetSlotMappings()
@Nullable
public
Int2ObjectMap<String> getTargetSlotToNameMap()
@Nullable
public
Timer getTimerByName(String name)
public
ValueStore.Builder getValueStoreBuilder()
public
int getValueStoreDoubleSlot(String name)
public
int getValueStoreIntSlot(String name)
public
int getValueStoreStringSlot(String name)
public
boolean hasBlockEventSupport()
public
boolean hasComponentLocalStateMachines()
public
boolean hasEntityEventSupport()
public
boolean isTrackInteractions()
public
void popComponent()
public
void popCurrentStateName()
public
void popModifiedStateMap()
public
void pushCurrentStateName(String currentStateName)
public
void putInstruction(int slot, Instruction instruction)
public
void registerBlockSensorResetAction(int blockSet)
public
void requireAttitudeOverrideMemory()
public
void requireBlockTypeBlackboard(int blockSet)
public
boolean requiresAttitudeOverrideMemory()
public
boolean requiresBlockTypeBlackboard()
public
boolean requiresLeashPosition()
public
void setCurrentComponentContext(ComponentContext currentComponentContext)
public
void setCurrentInstructionContext(InstructionType context)
public
void setGlobalScope(Scope scope)
public
void setLocalStateMachineAutoReset()
public
void setModifiedStateMap(StateMappingHelper helper, StatePair[] map)
public
void setRequireLeashPosition()
public
void setScope(Scope scope)
public
void setStateEvaluator(StateEvaluator stateEvaluator)
public
void setToNewComponent()
public
void trackInteractions()

Fields

Private/Package Fields (29)

privateIntSet blackboardBlockSets
privateIntSet blockSensorResetBlockSets
privateBuilderManager builderManager
privateint componentIndexSource
privateIntStack componentIndexStack
privateInt2IntMap componentLocalStateMachines
privateint currentAttackIndex
privateComponentContext currentComponentContext
privateint currentComponentIndex
privateInstructionType currentInstructionContext
privateExecutionContext executionContext
privateScope globalScope
privateHolder<EntityStore> holder
privateObject2IntMap<String> instructionSlotMappings
privateBitSet localStateMachineAutoResetStates
privateList<Entry<StateMappingHelper, StatePair[]>> modifiedStateMap
privateEventSlotMapper<BlockEventType> npcBlockEventSlotMapper
privateNPCEntity npcEntity
privateEventSlotMapper<EntityEventType> npcEntityEventSlotMapper
privateEventSlotMapper<BlockEventType> playerBlockEventSlotMapper
privateEventSlotMapper<EntityEventType> playerEntityEventSlotMapper
privateboolean requireLeashPosition
privateboolean requiresAttitudeOverrideMemory
privateRoleStats roleStats
privateStdScope sensorScope
privateStateEvaluator stateEvaluator
privateStateMappingHelper stateHelper
privateboolean trackInteractions
privateValueStore.Builder valueStoreBuilder

Related Classes