Contents
Class ApplyAbilityEffectsInteraction
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.ApplyAbilityEffectsInteraction
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Interaction>>, NetworkSerializable<Interaction>, AbilityAttributeBinding, DescriptionExporter, Operation
public class ApplyAbilityEffectsInteraction
extends SimpleInstantInteraction
implements AbilityAttributeBinding, DescriptionExporter
An ability building block that needs a target entity (a projectile hit, an OnHit charge
activation): applies the ability's own effects to it.
Effects lists the ability's
debuff; several entries act as independent stacks: each application applies the first
effect the target does not already carry, so every stack keeps its own duration, and when
all are active the one closest to expiring is refreshed.
The on-hit effects support runes inject (carried by the ImpactModifiers in
context) apply automatically whenever the ability deals damage (RuneEffectDamageSystem). Only a hit that
deals no damage needs RuneEffects here to apply them.
-
Nested Class Summary
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_CACHEFields inherited from interface DescriptionExporter
TOOLTIP_PARAM_PREFIX_DOCUMENTATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPasses every attribute name this config binds toout.voidexport(DescriptionSink sink) 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
-
ApplyAbilityEffectsInteraction
public ApplyAbilityEffectsInteraction()
-
-
Method Details
-
collectAbilityAttributes
Description copied from interface:AbilityAttributeBindingPasses every attribute name this config binds toout.- Specified by:
collectAbilityAttributesin interfaceAbilityAttributeBinding
-
export
- Specified by:
exportin interfaceDescriptionExporter
-