BuilderSupport

public class BuilderSupport

Class BuilderSupport. Provides buildersupport functionality for the Hytale server.

java.lang.Object > BuilderSupport

Field Summary

requireLeashPosition

private boolean requireLeashPosition

Field requireLeashPosition.

playerBlockEventSlotMapper

private EventSlotMapper playerBlockEventSlotMapper

Field playerBlockEventSlotMapper.

npcBlockEventSlotMapper

private EventSlotMapper npcBlockEventSlotMapper

Field npcBlockEventSlotMapper.

playerEntityEventSlotMapper

private EventSlotMapper playerEntityEventSlotMapper

Field playerEntityEventSlotMapper.

npcEntityEventSlotMapper

private EventSlotMapper npcEntityEventSlotMapper

Field npcEntityEventSlotMapper.

globalScope

private Scope globalScope

Field globalScope.

currentComponentIndex

private int currentComponentIndex

Field currentComponentIndex.

componentIndexStack

private IntStack componentIndexStack

Field componentIndexStack.

componentIndexSource

private int componentIndexSource

Field componentIndexSource.

currentAttackIndex

private int currentAttackIndex

Field currentAttackIndex.

componentLocalStateMachines

private Int2IntMap componentLocalStateMachines

Field componentLocalStateMachines.

localStateMachineAutoResetStates

private BitSet localStateMachineAutoResetStates

Field localStateMachineAutoResetStates.

blackboardBlockSets

private IntSet blackboardBlockSets

Field blackboardBlockSets.

blockSensorResetBlockSets

private IntSet blockSensorResetBlockSets

Field blockSensorResetBlockSets.

requiresAttitudeOverrideMemory

private boolean requiresAttitudeOverrideMemory

Field requiresAttitudeOverrideMemory.

trackInteractions

private boolean trackInteractions

Field trackInteractions.

currentInstructionContext

private InstructionType currentInstructionContext

Field currentInstructionContext.

currentComponentContext

private ComponentContext currentComponentContext

Field currentComponentContext.

stateEvaluator

private StateEvaluator stateEvaluator

Field stateEvaluator.

valueStoreBuilder

private ValueStore.Builder valueStoreBuilder

Field valueStoreBuilder.

npc

final NPCEntity npc

Field npc.

alarmStore

final AlarmStore alarmStore

Field alarmStore.

slotCount

final int slotCount

Field slotCount.

referenceList

final List referenceList

Field referenceList.

slots

final Instruction[] slots

Field slots.

instruction

final Instruction instruction

Field instruction.

blockSets

final IntArrayList blockSets

Field blockSets.

playerEventSets

final IntSet playerEventSets

Field playerEventSets.

npcEventSets

final IntSet npcEventSets

Field npcEventSets.

set

final IntOpenHashSet set

Field set.

Method Detail

BuilderSupport

public 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 BuilderManager builderManager
@Nonnull final NPCEntity npcEntity
final Holder holder
final ExecutionContext executionContext
@Nonnull final Builder roleBuilder
final RoleStats roleStats

getBuilderManager

public BuilderManager getBuilderManager ()

Method getBuilderManager.

getEntity

public NPCEntity getEntity ()

Method getEntity.

getHolder

public Holder getHolder ()

Method getHolder.

getExecutionContext

public ExecutionContext getExecutionContext ()

Method getExecutionContext.

getParentSpawnable

public Builder getParentSpawnable ()

Method getParentSpawnable.

setScope

public void setScope (final Scope scope)

Method setScope.

Parameters:
final Scope scope

setGlobalScope

public void setGlobalScope (final Scope scope)

Method setGlobalScope.

Parameters:
final Scope scope

getGlobalScope

public Scope getGlobalScope ()

Method getGlobalScope.

setRequireLeashPosition

public void setRequireLeashPosition ()

Method setRequireLeashPosition.

getFlagSlot

public int getFlagSlot (final String name)

Method getFlagSlot.

Parameters:
final String name

getTimerByName

public Timer getTimerByName (final String name)

Method getTimerByName.

Parameters:
final String name

getBeaconMessageSlot

public int getBeaconMessageSlot (final String name)

Method getBeaconMessageSlot.

Parameters:
final String name

getTargetSlot

public int getTargetSlot (final String name)

Method getTargetSlot.

Parameters:
final String name

getAlarm

public Alarm getAlarm (final String name)

Method getAlarm.

Parameters:
final String name

getTargetSlotMappings

public Object2IntMap getTargetSlotMappings ()

Method getTargetSlotMappings.

getTargetSlotToNameMap

public Int2ObjectMap getTargetSlotToNameMap ()

Method getTargetSlotToNameMap.

getPositionSlot

public int getPositionSlot (final String name)

Method getPositionSlot.

Parameters:
final String name

getParameterSlot

public int getParameterSlot (final String name)

Method getParameterSlot.

Parameters:
final String name

getSearchRaySlot

public int getSearchRaySlot (final String name)

Method getSearchRaySlot.

Parameters:
final String name

allocatePositionSlots

public Vector3d[] allocatePositionSlots ()

Method allocatePositionSlots.

requiresLeashPosition

public boolean requiresLeashPosition ()

Method requiresLeashPosition.

getStateEvaluator

public StateEvaluator getStateEvaluator ()

Method getStateEvaluator.

setStateEvaluator

public void setStateEvaluator (final StateEvaluator stateEvaluator)

Method setStateEvaluator.

Parameters:
final StateEvaluator stateEvaluator

allocateFlags

public boolean[] allocateFlags ()

Method allocateFlags.

allocateTimers

public Tickable[] allocateTimers ()

Method allocateTimers.

allocateSearchRayPositionSlots

public Vector3d[] allocateSearchRayPositionSlots ()

Method allocateSearchRayPositionSlots.

getSensorScope

public StdScope getSensorScope ()

Method getSensorScope.

setToNewComponent

public void setToNewComponent ()

Method setToNewComponent.

addComponentLocalStateMachine

public void addComponentLocalStateMachine (final int defaultState)

Method addComponentLocalStateMachine.

Parameters:
final int defaultState

Int2IntOpenHashMap

public new Int2IntOpenHashMap ()

Method Int2IntOpenHashMap.

getComponentIndex

public int getComponentIndex ()

Method getComponentIndex.

popComponent

public void popComponent ()

Method popComponent.

hasComponentLocalStateMachines

public boolean hasComponentLocalStateMachines ()

Method hasComponentLocalStateMachines.

getComponentLocalStateMachines

public Int2IntMap getComponentLocalStateMachines ()

Method getComponentLocalStateMachines.

setLocalStateMachineAutoReset

public void setLocalStateMachineAutoReset ()

Method setLocalStateMachineAutoReset.

getLocalStateMachineAutoResetStates

public BitSet getLocalStateMachineAutoResetStates ()

Method getLocalStateMachineAutoResetStates.

getStateHelper

public StateMappingHelper getStateHelper ()

Method getStateHelper.

getBeaconSlotMappings

public Object2IntMap getBeaconSlotMappings ()

Method getBeaconSlotMappings.

hasBlockEventSupport

public boolean hasBlockEventSupport ()

Method hasBlockEventSupport.

getPlayerBlockEventSlotMapper

public EventSlotMapper getPlayerBlockEventSlotMapper ()

Method getPlayerBlockEventSlotMapper.

getNPCBlockEventSlotMapper

public EventSlotMapper getNPCBlockEventSlotMapper ()

Method getNPCBlockEventSlotMapper.

hasEntityEventSupport

public boolean hasEntityEventSupport ()

Method hasEntityEventSupport.

getPlayerEntityEventSlotMapper

public EventSlotMapper getPlayerEntityEventSlotMapper ()

Method getPlayerEntityEventSlotMapper.

getNPCEntityEventSlotMapper

public EventSlotMapper getNPCEntityEventSlotMapper ()

Method getNPCEntityEventSlotMapper.

getInstructionSlot

public int getInstructionSlot (@Nullable final String name)

Method getInstructionSlot.

Parameters:
@Nullable final String name

putInstruction

public void putInstruction (final int slot, final Instruction instruction)

Method putInstruction.

Parameters:
final int slot
final Instruction instruction

IllegalStateException

public 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(slot this.instructionNameMappings.get(slot

getInstructionSlotMappings

public Instruction[] getInstructionSlotMappings ()

Method getInstructionSlotMappings.

setModifiedStateMap

public void setModifiedStateMap (@Nonnull final StateMappingHelper helper, @Nonnull final StatePair[] map)

Method setModifiedStateMap.

Parameters:
@Nonnull final StateMappingHelper helper
@Nonnull final StatePair[] map

getMappedStatePair

public StatePair getMappedStatePair (int index)

Method getMappedStatePair.

Parameters:
int index

popModifiedStateMap

public void popModifiedStateMap ()

Method popModifiedStateMap.

requireBlockTypeBlackboard

public void requireBlockTypeBlackboard (final int blockSet)

Method requireBlockTypeBlackboard.

Parameters:
final int blockSet

registerBlockSensorResetAction

public void registerBlockSensorResetAction (final int blockSet)

Method registerBlockSensorResetAction.

Parameters:
final int blockSet

requiresBlockTypeBlackboard

public boolean requiresBlockTypeBlackboard ()

Method requiresBlockTypeBlackboard.

getBlockTypeBlackboardBlockSets

public IntList getBlockTypeBlackboardBlockSets ()

Method getBlockTypeBlackboardBlockSets.

getBlockEventSlot

public int getBlockEventSlot (final BlockEventType type, final int blockSet, final double maxRange, final boolean player)

Method getBlockEventSlot.

Parameters:
final BlockEventType type
final int blockSet
final double maxRange
final boolean player

getBlockChangeSets

public IntSet getBlockChangeSets (final BlockEventType type)

Method getBlockChangeSets.

Parameters:
final BlockEventType type

getEntityEventSlot

public int getEntityEventSlot (final EntityEventType type, final int npcGroup, final double maxRange, final boolean player)

Method getEntityEventSlot.

Parameters:
final EntityEventType type
final int npcGroup
final double maxRange
final boolean player

getEventNPCGroups

public IntSet getEventNPCGroups (final EntityEventType type)

Method getEventNPCGroups.

Parameters:
final EntityEventType type

requireAttitudeOverrideMemory

public void requireAttitudeOverrideMemory ()

Method requireAttitudeOverrideMemory.

trackInteractions

public void trackInteractions ()

Method trackInteractions.

isTrackInteractions

public boolean isTrackInteractions ()

Method isTrackInteractions.

requiresAttitudeOverrideMemory

public boolean requiresAttitudeOverrideMemory ()

Method requiresAttitudeOverrideMemory.

setCurrentInstructionContext

public void setCurrentInstructionContext (final InstructionType context)

Method setCurrentInstructionContext.

Parameters:
final InstructionType context

getCurrentInstructionContext

public InstructionType getCurrentInstructionContext ()

Method getCurrentInstructionContext.

getCurrentComponentContext

public ComponentContext getCurrentComponentContext ()

Method getCurrentComponentContext.

setCurrentComponentContext

public void setCurrentComponentContext (final ComponentContext currentComponentContext)

Method setCurrentComponentContext.

Parameters:
final ComponentContext currentComponentContext

getRoleStats

public RoleStats getRoleStats ()

Method getRoleStats.

getNextAttackIndex

public int getNextAttackIndex ()

Method getNextAttackIndex.

getValueStoreStringSlot

public int getValueStoreStringSlot (final String name)

Method getValueStoreStringSlot.

Parameters:
final String name

getValueStoreIntSlot

public int getValueStoreIntSlot (final String name)

Method getValueStoreIntSlot.

Parameters:
final String name

getValueStoreDoubleSlot

public int getValueStoreDoubleSlot (final String name)

Method getValueStoreDoubleSlot.

Parameters:
final String name

getValueStoreBuilder

public ValueStore.Builder getValueStoreBuilder ()

Method getValueStoreBuilder.

getCurrentStateName

public String getCurrentStateName ()

Method getCurrentStateName.

pushCurrentStateName

public void pushCurrentStateName (@Nonnull final String currentStateName)

Method pushCurrentStateName.

Parameters:
@Nonnull final String currentStateName

popCurrentStateName

public void popCurrentStateName ()

Method popCurrentStateName.