Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getBuilderManager()
- getHolder()
- getExecutionContext()
- getRootBuilder()
- setScope(Scope)
- setGlobalScope(Scope)
- getGlobalScope()
- setRequireLeashPosition()
- getFlagSlot(String)
- getTimerByName(String)
- getBeaconMessageSlot(String)
- getTargetSlot(String)
- getAlarm(String)
- getTargetSlotMappings()
- getTargetSlotToNameMap()
- getPositionSlot(String)
- getParameterSlot(String)
- getSearchRaySlot(String)
- allocatePositionSlots()
- requiresLeashPosition()
- getStateEvaluator()
- setStateEvaluator(StateEvaluator)
- allocateFlags()
- allocateTimers()
- allocateSearchRayPositionSlots()
- getSensorScope()
- setToNewComponent()
- addComponentLocalStateMachine(int)
- getComponentIndex()
- popComponent()
- hasComponentLocalStateMachines()
- getComponentLocalStateMachines()
- setLocalStateMachineAutoReset()
- getLocalStateMachineAutoResetStates()
- getStateHelper()
- getBeaconSlotMappings()
- hasBlockEventSupport()
- getPlayerBlockEventSlotMapper()
- getNPCBlockEventSlotMapper()
- hasEntityEventSupport()
- getPlayerEntityEventSlotMapper()
- getNPCEntityEventSlotMapper()
- getInstructionSlot(String)
- putInstruction(int, Instruction)
- getInstructionSlotMappings()
- setModifiedStateMap(StateMappingHelper, StatePair[])
- getMappedStatePair(int)
- popModifiedStateMap()
- setForwardedModifiers(Map)
- getForwardedModifier(String)
- requireBlockTypeBlackboard(int)
- registerBlockSensorResetAction(int)
- requiresBlockTypeBlackboard()
- getBlockTypeBlackboardBlockSets()
- getBlockEventSlot(BlockEventType, int, double, boolean)
- getBlockChangeSets(BlockEventType)
- getEntityEventSlot(EntityEventType, int, double, boolean)
- getEventNPCGroups(EntityEventType)
- requireAttitudeOverrideMemory()
- trackInteractions()
- isTrackInteractions()
- requiresAttitudeOverrideMemory()
- setCurrentInstructionContext(InstructionType)
- getCurrentInstructionContext()
- getCurrentComponentContext()
- setCurrentComponentContext(ComponentContext)
- getRoleStats()
- getNextAttackIndex()
- getValueStoreStringSlot(String)
- getValueStoreIntSlot(String)
- getValueStoreDoubleSlot(String)
- getValueStoreBuilder()
- getCurrentStateName()
- pushCurrentStateName(String)
- popCurrentStateName()
Class BuilderSupport
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderSupport
-
Constructor Summary
ConstructorsConstructorDescriptionBuilderSupport(BuilderManager builderManager, Holder<EntityStore> holder, ExecutionContext executionContext, Builder<?> builder, RoleStats roleStats) BuilderSupport(BuilderManager builderManager, NPCEntity npcEntity, Holder<EntityStore> holder, ExecutionContext executionContext, Builder<?> builder, RoleStats roleStats) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentLocalStateMachine(int defaultState) boolean[]org.joml.Vector3d[]org.joml.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) getForwardedModifier(String slot) The forwarded modifier addressed toslotat the current level,BuilderModifier.CLEAREDif it was explicitly nulled here, ornullif none.intgetInstructionSlot(String name) getMappedStatePair(int index) intintgetParameterSlot(String name) intgetPositionSlot(String name) Builder<?> 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) voidMap<String, ? extends ForwardedModifier> setForwardedModifiers(Map<String, ? extends ForwardedModifier> forwardedModifiers) Sets the forwarded modifiers for the level about to be built (the current builder's direct slots) and returns the previous value, so the caller restores it after the sub-build.voidsetGlobalScope(Scope scope) voidvoidsetModifiedStateMap(StateMappingHelper helper, StatePair[] map) voidvoidvoidsetStateEvaluator(StateEvaluator stateEvaluator) voidvoid
-
Constructor Details
-
BuilderSupport
public BuilderSupport(@Nonnull BuilderManager builderManager, @Nonnull NPCEntity npcEntity, @Nullable Holder<EntityStore> holder, @Nonnull ExecutionContext executionContext, @Nonnull Builder<?> builder, @Nullable RoleStats roleStats) -
BuilderSupport
public BuilderSupport(@Nonnull BuilderManager builderManager, @Nullable Holder<EntityStore> holder, @Nonnull ExecutionContext executionContext, @Nonnull Builder<?> builder, @Nullable RoleStats roleStats)
-
-
Method Details
-
getBuilderManager
-
getHolder
-
getExecutionContext
-
getRootBuilder
-
setScope
-
setGlobalScope
-
getGlobalScope
-
setRequireLeashPosition
public void setRequireLeashPosition() -
getFlagSlot
-
getTimerByName
-
getBeaconMessageSlot
-
getTargetSlot
-
getAlarm
-
getTargetSlotMappings
-
getTargetSlotToNameMap
-
getPositionSlot
-
getParameterSlot
-
getSearchRaySlot
-
allocatePositionSlots
@Nullable public org.joml.Vector3d[] allocatePositionSlots() -
requiresLeashPosition
public boolean requiresLeashPosition() -
getStateEvaluator
-
setStateEvaluator
-
allocateFlags
public boolean[] allocateFlags() -
allocateTimers
-
allocateSearchRayPositionSlots
@Nullable public org.joml.Vector3d[] 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() -
setForwardedModifiers
@Nullable public Map<String, ? extends ForwardedModifier> setForwardedModifiers(@Nullable Map<String, ? extends ForwardedModifier> forwardedModifiers) Sets the forwarded modifiers for the level about to be built (the current builder's direct slots) and returns the previous value, so the caller restores it after the sub-build. Replacing rather than stacking keeps forwarding strictly one level. -
getForwardedModifier
The forwarded modifier addressed toslotat the current level,BuilderModifier.CLEAREDif it was explicitly nulled here, ornullif none. -
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()
-