Contents
Enum Class EffectOrigin
- All Implemented Interfaces:
Serializable, Comparable<EffectOrigin>, Constable
The reference point an effect resolves its position against. Shared by every effect that places
something at a point so the anchor vocabulary and the missing-actor fallback stay consistent.
Resolve a concrete position with
TriggerContext.resolveOrigin(EffectOrigin, Vector3d, TriggerContext.MissingActor).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe triggering entity's position; falls back per the effect's policy when there is no actor.Where the triggering event happened (block position, else actor); falls back per policy when absent.The volume's origin.An absolute world coordinate. -
Method Summary
Modifier and TypeMethodDescriptionstatic EffectOriginReturns the enum constant of this class with the specified name.static EffectOrigin[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VOLUME_ORIGIN
The volume's origin. The configured offset is added to it. -
ENTITY
The triggering entity's position; falls back per the effect's policy when there is no actor. -
EVENT
Where the triggering event happened (block position, else actor); falls back per policy when absent. -
WORLD_ABSOLUTE
An absolute world coordinate. The configured offset is the position itself.
-
-
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
-