Class BuilderSupport
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderSupport
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotMapperprivate it.unimi.dsi.fastutil.ints.IntSetprivate it.unimi.dsi.fastutil.ints.IntSetprivate final BuilderManagerprivate intprivate it.unimi.dsi.fastutil.ints.IntStackprivate it.unimi.dsi.fastutil.ints.Int2IntMapprivate intprivate ComponentContextprivate intprivate InstructionTypeprivate final ExecutionContextprivate final SlotMapperprivate Scopeprivate final Holder<EntityStore> private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> private final List<Instruction> private final it.unimi.dsi.fastutil.objects.Object2IntMap<String> private BitSetprivate List<Map.Entry<StateMappingHelper, StatePair[]>> private EventSlotMapper<BlockEventType> private final NPCEntityprivate EventSlotMapper<EntityEventType> private final SlotMapperprivate EventSlotMapper<BlockEventType> private EventSlotMapper<EntityEventType> private final SlotMapperprivate booleanprivate booleanprivate final Builder<?> private final RoleStatsprivate final SlotMapperprivate final StdScopeprivate StateEvaluatorprivate final StateMappingHelperprivate final ArrayDeque<String> private final SlotMapperprivate final ReferenceSlotMapper<Timer> private booleanprivate ValueStore.Builder -
Constructor Summary
ConstructorsConstructorDescriptionBuilderSupport(BuilderManager builderManager, NPCEntity npcEntity, Holder<EntityStore> holder, ExecutionContext executionContext, Builder<?> roleBuilder, RoleStats roleStats) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentLocalStateMachine(int defaultState) boolean[]Vector3d[]private static Vector3d[]allocatePositionSlots(SlotMapper mapper) Vector3d[]Tickable[]intgetBeaconMessageSlot(String name) it.unimi.dsi.fastutil.objects.Object2IntMap<String> it.unimi.dsi.fastutil.ints.IntSetintgetBlockEventSlot(BlockEventType type, int blockSet, double maxRange, boolean player) it.unimi.dsi.fastutil.ints.IntListintit.unimi.dsi.fastutil.ints.Int2IntMapintgetEntityEventSlot(EntityEventType type, int npcGroup, double maxRange, boolean player) it.unimi.dsi.fastutil.ints.IntSetintgetFlagSlot(String name) intgetInstructionSlot(String name) getMappedStatePair(int index) intintgetParameterSlot(String name) Builder<?> intgetPositionSlot(String name) intgetSearchRaySlot(String name) intgetTargetSlot(String name) it.unimi.dsi.fastutil.objects.Object2IntMap<String> it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> getTimerByName(String name) intintgetValueStoreIntSlot(String name) intbooleanbooleanbooleanbooleanvoidvoidvoidvoidpushCurrentStateName(String currentStateName) voidputInstruction(int slot, Instruction instruction) voidregisterBlockSensorResetAction(int blockSet) voidvoidrequireBlockTypeBlackboard(int blockSet) booleanbooleanbooleanvoidsetCurrentComponentContext(ComponentContext currentComponentContext) voidvoidsetGlobalScope(Scope scope) voidvoidsetModifiedStateMap(StateMappingHelper helper, StatePair[] map) voidvoidvoidsetStateEvaluator(StateEvaluator stateEvaluator) voidvoid
-
Field Details
-
builderManager
-
npcEntity
-
holder
-
executionContext
-
requireLeashPosition
private boolean requireLeashPosition -
flagSlotMapper
-
beaconSlotMapper
-
targetSlotMapper
-
positionSlotMapper
-
timerSlotMapper
-
searchRaySlotMapper
-
parameterSlotMapper
-
instructionSlotMappings
-
instructionNameMappings
-
instructions
-
playerBlockEventSlotMapper
-
npcBlockEventSlotMapper
-
playerEntityEventSlotMapper
-
npcEntityEventSlotMapper
-
globalScope
-
currentComponentIndex
private int currentComponentIndex -
componentIndexStack
private it.unimi.dsi.fastutil.ints.IntStack componentIndexStack -
componentIndexSource
private int componentIndexSource -
currentAttackIndex
private int currentAttackIndex -
componentLocalStateMachines
private it.unimi.dsi.fastutil.ints.Int2IntMap componentLocalStateMachines -
localStateMachineAutoResetStates
-
stateHelper
-
modifiedStateMap
-
blackboardBlockSets
private it.unimi.dsi.fastutil.ints.IntSet blackboardBlockSets -
blockSensorResetBlockSets
private it.unimi.dsi.fastutil.ints.IntSet blockSensorResetBlockSets -
requiresAttitudeOverrideMemory
private boolean requiresAttitudeOverrideMemory -
trackInteractions
private boolean trackInteractions -
currentInstructionContext
-
currentComponentContext
-
sensorScope
-
roleBuilder
-
roleStats
-
stateEvaluator
-
valueStoreBuilder
-
stateStack
-
-
Constructor Details
-
BuilderSupport
public BuilderSupport(BuilderManager builderManager, @Nonnull NPCEntity npcEntity, Holder<EntityStore> holder, ExecutionContext executionContext, @Nonnull Builder<?> roleBuilder, RoleStats roleStats)
-
-
Method Details
-
getBuilderManager
-
getEntity
-
getHolder
-
getExecutionContext
-
getParentSpawnable
-
setScope
-
setGlobalScope
-
getGlobalScope
-
setRequireLeashPosition
public void setRequireLeashPosition() -
getFlagSlot
-
getTimerByName
-
getBeaconMessageSlot
-
getTargetSlot
-
getAlarm
-
getTargetSlotMappings
-
getTargetSlotToNameMap
-
getPositionSlot
-
getParameterSlot
-
getSearchRaySlot
-
allocatePositionSlots
-
requiresLeashPosition
public boolean requiresLeashPosition() -
getStateEvaluator
-
setStateEvaluator
-
allocateFlags
public boolean[] allocateFlags() -
allocateTimers
-
allocateSearchRayPositionSlots
-
getSensorScope
-
setToNewComponent
public void setToNewComponent() -
addComponentLocalStateMachine
public void addComponentLocalStateMachine(int defaultState) -
getComponentIndex
public int getComponentIndex() -
popComponent
public void popComponent() -
hasComponentLocalStateMachines
public boolean hasComponentLocalStateMachines() -
getComponentLocalStateMachines
public it.unimi.dsi.fastutil.ints.Int2IntMap getComponentLocalStateMachines() -
setLocalStateMachineAutoReset
public void setLocalStateMachineAutoReset() -
getLocalStateMachineAutoResetStates
-
getStateHelper
-
getBeaconSlotMappings
-
hasBlockEventSupport
public boolean hasBlockEventSupport() -
getPlayerBlockEventSlotMapper
-
getNPCBlockEventSlotMapper
-
hasEntityEventSupport
public boolean hasEntityEventSupport() -
getPlayerEntityEventSlotMapper
-
getNPCEntityEventSlotMapper
-
getInstructionSlot
-
putInstruction
-
getInstructionSlotMappings
-
setModifiedStateMap
-
getMappedStatePair
-
popModifiedStateMap
public void popModifiedStateMap() -
requireBlockTypeBlackboard
public void requireBlockTypeBlackboard(int blockSet) -
registerBlockSensorResetAction
public void registerBlockSensorResetAction(int blockSet) -
requiresBlockTypeBlackboard
public boolean requiresBlockTypeBlackboard() -
getBlockTypeBlackboardBlockSets
@Nonnull public it.unimi.dsi.fastutil.ints.IntList getBlockTypeBlackboardBlockSets() -
getBlockEventSlot
-
getBlockChangeSets
-
getEntityEventSlot
-
getEventNPCGroups
-
requireAttitudeOverrideMemory
public void requireAttitudeOverrideMemory() -
trackInteractions
public void trackInteractions() -
isTrackInteractions
public boolean isTrackInteractions() -
requiresAttitudeOverrideMemory
public boolean requiresAttitudeOverrideMemory() -
setCurrentInstructionContext
-
getCurrentInstructionContext
-
getCurrentComponentContext
-
setCurrentComponentContext
-
getRoleStats
-
getNextAttackIndex
public int getNextAttackIndex() -
getValueStoreStringSlot
-
getValueStoreIntSlot
-
getValueStoreDoubleSlot
-
getValueStoreBuilder
-
getCurrentStateName
-
pushCurrentStateName
-
popCurrentStateName
public void popCurrentStateName() -
allocatePositionSlots
-