public class BuilderSupport
Class BuilderSupport. Provides buildersupport functionality for the Hytale server.
java.lang.Object > BuilderSupport
Field Summary
requireLeashPosition
Field requireLeashPosition.
playerBlockEventSlotMapper
Field playerBlockEventSlotMapper.
npcBlockEventSlotMapper
Field npcBlockEventSlotMapper.
playerEntityEventSlotMapper
Field playerEntityEventSlotMapper.
npcEntityEventSlotMapper
Field npcEntityEventSlotMapper.
globalScope
Field globalScope.
currentComponentIndex
Field currentComponentIndex.
componentIndexStack
Field componentIndexStack.
componentIndexSource
Field componentIndexSource.
currentAttackIndex
Field currentAttackIndex.
componentLocalStateMachines
Field componentLocalStateMachines.
localStateMachineAutoResetStates
Field localStateMachineAutoResetStates.
blackboardBlockSets
Field blackboardBlockSets.
blockSensorResetBlockSets
Field blockSensorResetBlockSets.
requiresAttitudeOverrideMemory
Field requiresAttitudeOverrideMemory.
trackInteractions
Field trackInteractions.
currentInstructionContext
Field currentInstructionContext.
currentComponentContext
Field currentComponentContext.
stateEvaluator
Field stateEvaluator.
valueStoreBuilder
Field valueStoreBuilder.
npc
Field npc.
alarmStore
Field alarmStore.
slotCount
Field slotCount.
referenceList
Field referenceList.
slots
Field slots.
instruction
Field instruction.
blockSets
Field blockSets.
playerEventSets
Field playerEventSets.
npcEventSets
Field npcEventSets.
set
Field set.
Method Detail
BuilderSupport
public
BuilderSupport
(final BuilderManager builderManager, @Nonnull final NPCEntity npcEntity, final Holder holder, final ExecutionContext executionContext, @Nonnull final Builder> roleBuilder, final RoleStats roleStats)
Method BuilderSupport.
- Parameters:
final BuilderManagerbuilderManager@Nonnull final NPCEntitynpcEntityfinal Holderholderfinal ExecutionContextexecutionContext@Nonnull final Builder>roleBuilderfinal RoleStatsroleStats
setRequireLeashPosition
void
setRequireLeashPosition
()
Method setRequireLeashPosition.
getFlagSlot
int
getFlagSlot
(final String name)
Method getFlagSlot.
- Parameters:
final Stringname
getTimerByName
Method getTimerByName.
- Parameters:
final Stringname
getBeaconMessageSlot
int
getBeaconMessageSlot
(final String name)
Method getBeaconMessageSlot.
- Parameters:
final Stringname
getTargetSlot
int
getTargetSlot
(final String name)
Method getTargetSlot.
- Parameters:
final Stringname
getTargetSlotMappings
Object2IntMap
getTargetSlotMappings
()
Method getTargetSlotMappings.
getTargetSlotToNameMap
Int2ObjectMap
getTargetSlotToNameMap
()
Method getTargetSlotToNameMap.
getPositionSlot
int
getPositionSlot
(final String name)
Method getPositionSlot.
- Parameters:
final Stringname
getParameterSlot
int
getParameterSlot
(final String name)
Method getParameterSlot.
- Parameters:
final Stringname
getSearchRaySlot
int
getSearchRaySlot
(final String name)
Method getSearchRaySlot.
- Parameters:
final Stringname
allocatePositionSlots
Vector3d[]
allocatePositionSlots
()
Method allocatePositionSlots.
requiresLeashPosition
boolean
requiresLeashPosition
()
Method requiresLeashPosition.
allocateFlags
boolean[]
allocateFlags
()
Method allocateFlags.
allocateTimers
Tickable[]
allocateTimers
()
Method allocateTimers.
allocateSearchRayPositionSlots
Vector3d[]
allocateSearchRayPositionSlots
()
Method allocateSearchRayPositionSlots.
setToNewComponent
void
setToNewComponent
()
Method setToNewComponent.
addComponentLocalStateMachine
void
addComponentLocalStateMachine
(final int defaultState)
Method addComponentLocalStateMachine.
- Parameters:
final intdefaultState
Int2IntOpenHashMap
new
Int2IntOpenHashMap
()
Method Int2IntOpenHashMap.
getComponentIndex
int
getComponentIndex
()
Method getComponentIndex.
popComponent
void
popComponent
()
Method popComponent.
hasComponentLocalStateMachines
boolean
hasComponentLocalStateMachines
()
Method hasComponentLocalStateMachines.
getComponentLocalStateMachines
Int2IntMap
getComponentLocalStateMachines
()
Method getComponentLocalStateMachines.
setLocalStateMachineAutoReset
void
setLocalStateMachineAutoReset
()
Method setLocalStateMachineAutoReset.
getLocalStateMachineAutoResetStates
BitSet
getLocalStateMachineAutoResetStates
()
Method getLocalStateMachineAutoResetStates.
getBeaconSlotMappings
Object2IntMap
getBeaconSlotMappings
()
Method getBeaconSlotMappings.
hasBlockEventSupport
boolean
hasBlockEventSupport
()
Method hasBlockEventSupport.
getPlayerBlockEventSlotMapper
Method getPlayerBlockEventSlotMapper.
getNPCBlockEventSlotMapper
Method getNPCBlockEventSlotMapper.
hasEntityEventSupport
boolean
hasEntityEventSupport
()
Method hasEntityEventSupport.
getPlayerEntityEventSlotMapper
Method getPlayerEntityEventSlotMapper.
getNPCEntityEventSlotMapper
Method getNPCEntityEventSlotMapper.
getInstructionSlot
int
getInstructionSlot
(@Nullable final String name)
Method getInstructionSlot.
- Parameters:
@Nullable final Stringname
IllegalStateException
new
IllegalStateException
(String.format("Duplicate instruction with name: %s", this.instructionNameMappings.get(slot)
Method IllegalStateException.
- Parameters:
String.format("Duplicate instruction with name:%s"this.instructionNameMappings.get(slotthis.instructionNameMappings.get(slot
getInstructionSlotMappings
Instruction[]
getInstructionSlotMappings
()
Method getInstructionSlotMappings.
setModifiedStateMap
void
setModifiedStateMap
(@Nonnull final StateMappingHelper helper, @Nonnull final StatePair[] map)
Method setModifiedStateMap.
- Parameters:
@Nonnull final StateMappingHelperhelper@Nonnull final StatePair[]map
getMappedStatePair
Method getMappedStatePair.
- Parameters:
intindex
popModifiedStateMap
void
popModifiedStateMap
()
Method popModifiedStateMap.
requireBlockTypeBlackboard
void
requireBlockTypeBlackboard
(final int blockSet)
Method requireBlockTypeBlackboard.
- Parameters:
final intblockSet
registerBlockSensorResetAction
void
registerBlockSensorResetAction
(final int blockSet)
Method registerBlockSensorResetAction.
- Parameters:
final intblockSet
requiresBlockTypeBlackboard
boolean
requiresBlockTypeBlackboard
()
Method requiresBlockTypeBlackboard.
getBlockTypeBlackboardBlockSets
IntList
getBlockTypeBlackboardBlockSets
()
Method getBlockTypeBlackboardBlockSets.
getBlockEventSlot
int
getBlockEventSlot
(final BlockEventType type, final int blockSet, final double maxRange, final boolean player)
Method getBlockEventSlot.
- Parameters:
final BlockEventTypetypefinal intblockSetfinal doublemaxRangefinal booleanplayer
getEntityEventSlot
int
getEntityEventSlot
(final EntityEventType type, final int npcGroup, final double maxRange, final boolean player)
Method getEntityEventSlot.
- Parameters:
final EntityEventTypetypefinal intnpcGroupfinal doublemaxRangefinal booleanplayer
requireAttitudeOverrideMemory
void
requireAttitudeOverrideMemory
()
Method requireAttitudeOverrideMemory.
trackInteractions
void
trackInteractions
()
Method trackInteractions.
isTrackInteractions
boolean
isTrackInteractions
()
Method isTrackInteractions.
requiresAttitudeOverrideMemory
boolean
requiresAttitudeOverrideMemory
()
Method requiresAttitudeOverrideMemory.
setCurrentInstructionContext
Method setCurrentInstructionContext.
- Parameters:
final InstructionTypecontext
getCurrentInstructionContext
Method getCurrentInstructionContext.
getCurrentComponentContext
Method getCurrentComponentContext.
setCurrentComponentContext
Method setCurrentComponentContext.
- Parameters:
final ComponentContextcurrentComponentContext
getNextAttackIndex
int
getNextAttackIndex
()
Method getNextAttackIndex.
getValueStoreStringSlot
int
getValueStoreStringSlot
(final String name)
Method getValueStoreStringSlot.
- Parameters:
final Stringname
getValueStoreIntSlot
int
getValueStoreIntSlot
(final String name)
Method getValueStoreIntSlot.
- Parameters:
final Stringname
getValueStoreDoubleSlot
int
getValueStoreDoubleSlot
(final String name)
Method getValueStoreDoubleSlot.
- Parameters:
final Stringname
getValueStoreBuilder
ValueStore.Builder
getValueStoreBuilder
()
Method getValueStoreBuilder.
getCurrentStateName
String
getCurrentStateName
()
Method getCurrentStateName.
pushCurrentStateName
void
pushCurrentStateName
(@Nonnull final String currentStateName)
Method pushCurrentStateName.
- Parameters:
@Nonnull final StringcurrentStateName
popCurrentStateName
void
popCurrentStateName
()
Method popCurrentStateName.