Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getShortDescription()
- getLongDescription()
- build(BuilderSupport)
- readConfig(JsonElement)
- getBuilderDescriptorState()
- validate(String, NPCLoadTimeValidationHelper, ExecutionContext, Scope, List)
- getItem(BuilderSupport)
- getDropList(BuilderSupport)
- getThrowSpeed()
- getDropSectorRadians()
- getDistance()
- isHighPitch()
Class BuilderActionDropItem
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderBase<Action>
com.hypixel.hytale.server.npc.corecomponents.builders.BuilderActionBase
com.hypixel.hytale.server.npc.corecomponents.builders.BuilderActionWithDelay
com.hypixel.hytale.server.npc.corecomponents.items.builders.BuilderActionDropItem
- All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<Action>, BuilderContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double[]static final double[]Fields inherited from class BuilderActionWithDelay
DEFAULT_TIMEOUT_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(BuilderSupport builderSupport) double[]getDropList(BuilderSupport support) double[]getItem(BuilderSupport support) floatbooleanreadConfig(com.google.gson.JsonElement data) booleanvalidate(String configName, NPCLoadTimeValidationHelper validationHelper, ExecutionContext context, Scope globalScope, List<String> errors) Iterates the builder tree and validates all present dynamic value holders based on the execution context and scope provided.Methods inherited from class BuilderActionWithDelay
getDelayRange, readCommonConfigMethods inherited from class BuilderActionBase
canRequireFeature, category, isEnabled, isOnceMethods inherited from class BuilderBase
cleanupParameters, createVector3d, createVector3d, enumSetToStrings, excludeFromRegularBuilding, expectBooleanElement, expectKey, expectObject, expectObject, expectStringArray, expectStringArray, expectStringElement, getArray, getAsset, getAsset, getAssetArray, getAssetArray, getBoolean, getBoolean, getBuilderManager, getBuilderParameters, getCodecObject, getDependencies, getDescriptionArray, getDescriptor, getDictionary, getDomain, getDouble, getDouble, getDoubleArray, getDoubleArray, getDoubleRange, getDoubleRange, getEnum, getEnum, getEnumSet, getEnumSet, getEvaluatorHelper, getFloat, getFloat, getInstructionContextHelper, getInt, getInt, getIntArray, getIntArray, getIntRange, getIntRange, getLabel, getObject, getOverride, getOverride, getOwner, getParameterBlock, getSchemaName, getStateMappingHelper, getString, getString, getStringArray, getStringArray, getTypeName, getVector3d, getVector3d, ignoreAttribute, readBoolean, readConfig, readString, readString, readStringArray, readStringArray, registerTags, requireArray, requireArray, requireAsset, requireAsset, requireAssetArray, requireAssetArray, requireBoolean, requireBoolean, requireCodecObject, requireDictionary, requireDouble, requireDouble, requireDoubleArray, requireDoubleArray, requireDoubleIfNotOverridden, requireDoubleRange, requireDoubleRange, requireEmbeddableArray, requireEnum, requireEnum, requireEnumArray, requireEnumSet, requireEnumSet, requireFloat, requireFloat, requireInt, requireInt, requireIntArray, requireIntArray, requireIntIfNotOverridden, requireIntRange, requireIntRange, requireObject, requireString, requireString, requireStringArray, requireStringArray, requireStringIfNotOverridden, requireTemporalArray, requireTemporalRange, requireVector3d, requireVector3d, setLabel, setTypeName, stringsToEnumArray, stringsToEnumSet, stringToEnum, toSchema, validateAsset, validateAssetList, validateReferencedProvidedFeaturesMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
addDynamicDependency, clearDynamicDependencies, getDynamicDependencies, hasDynamicDependencies, isDeprecated, isSpawnableMethods inherited from interface BuilderContext
getBreadCrumbs, getBreadCrumbs, getParent, setCurrentStateNameMethods inherited from interface SchemaConvertable
toSchema
-
Field Details
-
DEFAULT_THROW_DISTANCE
public static final double[] DEFAULT_THROW_DISTANCE -
DEFAULT_DROP_SECTOR
public static final double[] DEFAULT_DROP_SECTOR
-
-
Constructor Details
-
BuilderActionDropItem
public BuilderActionDropItem()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescriptionin classBuilderBase<Action>
-
getLongDescription
- Specified by:
getLongDescriptionin classBuilderBase<Action>
-
build
-
readConfig
- Overrides:
readConfigin classBuilderBase<Action>
-
getBuilderDescriptorState
- Specified by:
getBuilderDescriptorStatein interfaceBuilder<Action>- Specified by:
getBuilderDescriptorStatein classBuilderBase<Action>
-
validate
public boolean validate(String configName, @Nonnull NPCLoadTimeValidationHelper validationHelper, ExecutionContext context, Scope globalScope, @Nonnull List<String> errors) Description copied from interface:BuilderIterates the builder tree and validates all present dynamic value holders based on the execution context and scope provided. Will also run an optional ILoadTimeValidationHelper- Specified by:
validatein interfaceBuilder<Action>- Overrides:
validatein classBuilderBase<Action>- Parameters:
configName- the name of the parent file from which the execution context and scope are derivedvalidationHelper- an optional validation helper that will be run in certain contexts depending on implementationscontext- the execution context for resolving value holdersglobalScope- the scope for resolving value holderserrors- a list for storing any errors encountered- Returns:
- false if any errors were encountered during validation, true otherwise
-
getItem
-
getDropList
-
getThrowSpeed
public float getThrowSpeed() -
getDropSectorRadians
public double[] getDropSectorRadians() -
getDistance
public double[] getDistance() -
isHighPitch
public boolean isHighPitch()
-