Enum Class EffectDispatchSpine.DispatchEventType
java.lang.Object
java.lang.Enum<EffectDispatchSpine.DispatchEventType>
io.artificial.enchantments.internal.EffectDispatchSpine.DispatchEventType
- All Implemented Interfaces:
Serializable,Comparable<EffectDispatchSpine.DispatchEventType>,Constable
- Enclosing class:
EffectDispatchSpine
public static enum EffectDispatchSpine.DispatchEventType
extends Enum<EffectDispatchSpine.DispatchEventType>
Enumeration of all dispatchable event types.
Maps to methods in
EnchantmentEffectHandler and corresponding
EnchantEffectEvent subclasses.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArmor tick.Block broken by player.Pre-break check for block breaking.Player interacts with a block.Block placed by player.Bow or crossbow shot.Durability damage taken.Entity damaged by any source.Entity damaged by another entity.Player interacts with an entity.Fishing rod action.Held item tick.Item consumed.Item dropped.Item picked up.Item used.Projectile hits a target.Projectile launched.Shield block event.Trident thrown. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTITY_DAMAGE_BY_ENTITY
Entity damaged by another entity. -
ENTITY_DAMAGE
Entity damaged by any source. -
SHIELD_BLOCK
Shield block event. -
BLOCK_BREAK
Block broken by player. -
BLOCK_BREAK_PRE
Pre-break check for block breaking. -
BLOCK_PLACE
Block placed by player. -
BLOCK_INTERACT
Player interacts with a block. -
ENTITY_INTERACT
Player interacts with an entity. -
PROJECTILE_LAUNCH
Projectile launched. -
PROJECTILE_HIT
Projectile hits a target. -
FISHING_ACTION
Fishing rod action. -
HELD_TICK
Held item tick. -
ARMOR_TICK
Armor tick. -
ITEM_USED
Item used. -
DURABILITY_DAMAGE
Durability damage taken. -
ITEM_DROP
Item dropped. -
ITEM_PICKUP
Item picked up. -
ITEM_CONSUME
Item consumed. -
BOW_SHOOT
Bow or crossbow shot. -
TRIDENT_THROW
Trident thrown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-