public class BuilderRole extends SpawnableWithModelBuilder
Class BuilderRole. Provides builderrole functionality for the Hytale server.
java.lang.Object > SpawnableWithModelBuilder > BuilderRole
Field Summary
displayNames
Field displayNames.
startState
Field startState.
defaultSubState
Field defaultSubState.
startStateIndex
Field startStateIndex.
startSubStateIndex
Field startSubStateIndex.
debugFlags
Field debugFlags.
inertia
Field inertia.
knockbackScale
Field knockbackScale.
opaqueBlockSet
Field opaqueBlockSet.
applyAvoidance
Field applyAvoidance.
entityAvoidanceStrength
Field entityAvoidanceStrength.
collisionDistance
Field collisionDistance.
collisionForceFalloff
Field collisionForceFalloff.
collisionRadius
Field collisionRadius.
collisionViewAngle
Field collisionViewAngle.
separationDistance
Field separationDistance.
separationWeight
Field separationWeight.
separationDistanceTarget
Field separationDistanceTarget.
separationNearRadiusTarget
Field separationNearRadiusTarget.
separationFarRadiusTarget
Field separationFarRadiusTarget.
stayInEnvironment
Field stayInEnvironment.
allowedEnvironments
Field allowedEnvironments.
flockWeightAlignment
Field flockWeightAlignment.
flockWeightSeparation
Field flockWeightSeparation.
flockWeightCohesion
Field flockWeightCohesion.
flockInfluenceRange
Field flockInfluenceRange.
corpseStaysInFlock
Field corpseStaysInFlock.
pickupDropOnDeath
Field pickupDropOnDeath.
armor
Field armor.
deathAnimationTime
Field deathAnimationTime.
despawnAnimationTime
Field despawnAnimationTime.
deathInteraction
Field deathInteraction.
avoidanceMode
Field avoidanceMode.
disableDamageFlock
Field disableDamageFlock.
spawnParticles
Field spawnParticles.
spawnParticleOffset
Field spawnParticleOffset.
spawnViewDistance
Field spawnViewDistance.
inventorySlots
Field inventorySlots.
hotbarSlots
Field hotbarSlots.
offHandSlots
Field offHandSlots.
busyStates
Field busyStates.
hotbar
Field hotbar.
offHand
Field offHand.
mc
Field mc.
factory
Field factory.
builder
Field builder.
stateEvaluator
Field stateEvaluator.
builderInfo
Field builderInfo.
result
Field result.
zero
Field zero.
index
Field index.
val
Field val.
groupName
Field groupName.
npcModule
Field npcModule.
spawnTypes
Field spawnTypes.
allowedTypes
Field allowedTypes.
Method Detail
BuilderRole
public
BuilderRole
()
Method BuilderRole.
BuilderCombatConfig
new
BuilderCombatConfig
(BalanceAsset.CHILD_ASSET_CODEC, BalanceAsset.VALIDATOR_CACHE.getValidator()
Method BuilderCombatConfig.
- Parameters:
BalanceAsset.CHILD_ASSET_CODECBalanceAsset.CHILD_ASSET_CODECBalanceAsset.VALIDATOR_CACHE.getValidator(BalanceAsset.VALIDATOR_CACHE.getValidator(
getShortDescription
String
getShortDescription
()
Method getShortDescription.
getLongDescription
String
getLongDescription
()
Method getLongDescription.
getBuilderDescriptorState
Method getBuilderDescriptorState.
validate
boolean
validate
(final String configName, @Nonnull final NPCLoadTimeValidationHelper validationHelper, @Nonnull final ExecutionContext context, final Scope globalScope, @Nonnull final List errors)
Method validate.
- Parameters:
final StringconfigName@Nonnull final NPCLoadTimeValidationHelpervalidationHelper@Nonnull final ExecutionContextcontextfinal ScopeglobalScope@Nonnull final Listerrors
readConfig
Method readConfig.
- Parameters:
@Nonnull final JsonElementdata
items
Hotbar
items
(e.g. primary weapon, secondary weapon, etc)
Method items.
- Parameters:
secondaryweaponetcetc
slot
item
slot
(-1 is empty)
Method slot.
- Parameters:
-1 isempty
to
belongs
to
(often species related)
Method to.
- Parameters:
often speciesrelated
BuilderValidationHelper
new
BuilderValidationHelper
(this.fileName, null, this.internalReferenceResolver, null, null, this.extraInfo, this.evaluators, this.readErrors)
Method BuilderValidationHelper.
- Parameters:
this.fileNamethis.fileNamenullnullthis.internalReferenceResolverthis.internalReferenceResolverthis.extraInfothis.extraInfothis.evaluatorsthis.evaluatorsthis.readErrorsthis.readErrors
InstructionContextHelper
new
InstructionContextHelper
(InstructionType.StateTransitions)
Method InstructionContextHelper.
- Parameters:
InstructionType.StateTransitionsInstructionType.StateTransitions
getIdentifier
String
getIdentifier
()
Method getIdentifier.
category
Class
category
()
Method category.
getSpawnModelName
Method getSpawnModelName.
- Parameters:
final ExecutionContextcontextfinal ScopemodifierScope
markNeedsReload
void
markNeedsReload
()
Method markNeedsReload.
getSpawnParticles
String
getSpawnParticles
()
Method getSpawnParticles.
getSpawnViewDistance
double
getSpawnViewDistance
()
Method getSpawnViewDistance.
getDisplayNames
String[]
getDisplayNames
()
Method getDisplayNames.
getOpaqueBlockSet
int
getOpaqueBlockSet
()
Method getOpaqueBlockSet.
getInertia
double
getInertia
()
Method getInertia.
getKnockbackScale
double
getKnockbackScale
()
Method getKnockbackScale.
getInventoryItemsDropList
Method getInventoryItemsDropList.
- Parameters:
@Nonnull final BuilderSupportsupport
getArmor
String[]
getArmor
()
Method getArmor.
isPickupDropOnDeath
boolean
isPickupDropOnDeath
()
Method isPickupDropOnDeath.
getStartState
String
getStartState
()
Method getStartState.
getStartStateIndex
int
getStartStateIndex
()
Method getStartStateIndex.
getStartSubStateIndex
int
getStartSubStateIndex
()
Method getStartSubStateIndex.
getCollisionDistance
double
getCollisionDistance
()
Method getCollisionDistance.
getCollisionForceFalloff
double
getCollisionForceFalloff
()
Method getCollisionForceFalloff.
isAvoidingEntities
boolean
isAvoidingEntities
()
Method isAvoidingEntities.
getAvoidanceMode
Role.AvoidanceMode
getAvoidanceMode
()
Method getAvoidanceMode.
getCollisionRadius
double
getCollisionRadius
()
Method getCollisionRadius.
getSeparationDistance
double
getSeparationDistance
()
Method getSeparationDistance.
getSeparationWeight
double
getSeparationWeight
()
Method getSeparationWeight.
getSeparationDistanceTarget
double
getSeparationDistanceTarget
()
Method getSeparationDistanceTarget.
getSeparationNearRadiusTarget
double
getSeparationNearRadiusTarget
()
Method getSeparationNearRadiusTarget.
getSeparationFarRadiusTarget
double
getSeparationFarRadiusTarget
()
Method getSeparationFarRadiusTarget.
isStayingInEnvironment
boolean
isStayingInEnvironment
()
Method isStayingInEnvironment.
getAllowedEnvironments
String
getAllowedEnvironments
()
Method getAllowedEnvironments.
getEntityAvoidanceStrength
double
getEntityAvoidanceStrength
()
Method getEntityAvoidanceStrength.
isFlockSpawnTypeRandom
Method isFlockSpawnTypeRandom.
- Parameters:
@Nonnull final BuilderSupportsupport
getFlockWeightAlignment
double
getFlockWeightAlignment
()
Method getFlockWeightAlignment.
getFlockWeightSeparation
double
getFlockWeightSeparation
()
Method getFlockWeightSeparation.
getFlockWeightCohesion
double
getFlockWeightCohesion
()
Method getFlockWeightCohesion.
getFlockInfluenceRange
double
getFlockInfluenceRange
()
Method getFlockInfluenceRange.
getDebugFlags
EnumSet
getDebugFlags
()
Method getDebugFlags.
getCollisionViewAngle
float
getCollisionViewAngle
()
Method getCollisionViewAngle.
getDeathAnimationTime
double
getDeathAnimationTime
()
Method getDeathAnimationTime.
getDeathInteraction
Method getDeathInteraction.
- Parameters:
@Nonnull final BuilderSupportbuilderSupport
getDespawnAnimationTime
float
getDespawnAnimationTime
()
Method getDespawnAnimationTime.
isDisableDamageFlock
boolean
isDisableDamageFlock
()
Method isDisableDamageFlock.
getDisableDamageGroups
Method getDisableDamageGroups.
- Parameters:
@Nonnull final BuilderSupportsupport
getInventorySlots
int
getInventorySlots
()
Method getInventorySlots.
getHotbarSlots
int
getHotbarSlots
()
Method getHotbarSlots.
getOffHandSlots
int
getOffHandSlots
()
Method getOffHandSlots.
getDefaultOffHandSlot
Method getDefaultOffHandSlot.
- Parameters:
@Nonnull final BuilderSupportsupport
getBusyStates
Int2ObjectMap
getBusyStates
()
Method getBusyStates.
getDefaultPlayerAttitude
Method getDefaultPlayerAttitude.
- Parameters:
@Nonnull final BuilderSupportsupport
getDefaultNPCAttitude
Method getDefaultNPCAttitude.
- Parameters:
@Nonnull final BuilderSupportsupport
isCorpseStaysInFlock
boolean
isCorpseStaysInFlock
()
Method isCorpseStaysInFlock.
getMotionControllerMap
Method getMotionControllerMap.
- Parameters:
@Nonnull final BuilderSupportsupport
getInitialMotionController
Method getInitialMotionController.
- Parameters:
@Nonnull final BuilderSupportsupport
getInteractionInstruction
Method getInteractionInstruction.
- Parameters:
@Nonnull final BuilderSupportsupport
getStateTransitionController
StateTransitionController
getStateTransitionController
(@Nonnull final BuilderSupport support)
Method getStateTransitionController.
- Parameters:
@Nonnull final BuilderSupportsupport
registerStateEvaluator
Method registerStateEvaluator.
- Parameters:
@Nonnull final BuilderSupportsupport
getMemoriesCategory
Method getMemoriesCategory.
- Parameters:
final ExecutionContextcontextfinal ScopemodifierScope
runLoadTimeValidationHelper0
void
runLoadTimeValidationHelper0
(final String configName, final NPCLoadTimeValidationHelper loadTimeValidationHelper, final ExecutionContext context, @Nonnull final List errors)
Method runLoadTimeValidationHelper0.
- Parameters:
final StringconfigNamefinal NPCLoadTimeValidationHelperloadTimeValidationHelperfinal ExecutionContextcontext@Nonnull final Listerrors
IllegalStateException
new
IllegalStateException
(String.format("Invalid roles referenced for %s or %s", this.flockSpawnTypes.getName()
Method IllegalStateException.
- Parameters:
String.format("Invalid roles referenced for %s or%s"this.flockSpawnTypes.getName(this.flockSpawnTypes.getName(