Contents
Class SpawnAbilityEntityInteraction
java.lang.Object
com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInstantInteraction
com.hypixel.hytale.builtin.abilities.interaction.SpawnAbilityEntityInteraction
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Interaction>>, NetworkSerializable<Interaction>, AbilityAttributeBinding, Operation
public class SpawnAbilityEntityInteraction
extends SimpleInstantInteraction
implements AbilityAttributeBinding
An ability building block: spawns a stationary ability entity (e.g. a tornado) at the
point the caster aims at. The entity lives for Lifetime seconds and
re-runs each of its Repeats chains at its own interval. It has no stats, so damage against
it is ignored, but other abilities can still apply effects to it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOne repeating chain of an ability entity: re-run everySpawnAbilityEntityInteraction.RepeatConfig.intervalSseconds.Nested classes/interfaces inherited from interface Operation
Operation.NestedOperation -
Field Summary
FieldsFields inherited from class Interaction
ABSTRACT_CODEC, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, CONTEXT_META_REGISTRY, DAMAGE, HIT_DETAIL, HIT_LOCATION, META_REGISTRY, TARGET_BLOCK, TARGET_BLOCK_RAW, TARGET_BLOCK_ROTATION_INDEX, TARGET_BLOCK_TYPE, TARGET_ENTITY, TARGET_SLOT, TIME_SHIFT, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPasses every attribute name this config binds toout.String[]Methods inherited from class SimpleInstantInteraction
toStringMethods inherited from class SimpleInteraction
compile, getWaitForDataFrom, needsRemoteSync, walkMethods inherited from class Interaction
failed, getAssetMap, getAssetStore, getEffects, getHorizontalSpeedMultiplier, getId, getInteractionIdOrUnknown, getInteractionOrUnknown, getOnItemChangeBehavior, getRules, getRunTime, getSettings, getViewDistance, handle, isUnknown, mapForkChain, simulateTick, tick, toPacketMethods inherited from interface Operation
getInnerOperation, getTags
-
Field Details
-
CODEC
-
-
Constructor Details
-
SpawnAbilityEntityInteraction
public SpawnAbilityEntityInteraction()
-
-
Method Details
-
getRepeatChainRootIds
- Returns:
- the root interaction ids the spawned entity runs on its repeat intervals, or an empty array when it has none.
-
collectAbilityAttributes
Description copied from interface:AbilityAttributeBindingPasses every attribute name this config binds toout.- Specified by:
collectAbilityAttributesin interfaceAbilityAttributeBinding
-