Enum Class TrackerUpdateAction.Enchant
java.lang.Object
java.lang.Enum<TrackerUpdateAction.Enchant>
kr.toxicity.model.api.tracker.TrackerUpdateAction.Enchant
- All Implemented Interfaces:
Serializable, Comparable<TrackerUpdateAction.Enchant>, Constable, BiPredicate<RenderedBone, BonePredicate>, TrackerUpdateAction
- Enclosing interface:
TrackerUpdateAction
public static enum TrackerUpdateAction.Enchant
extends Enum<TrackerUpdateAction.Enchant>
implements TrackerUpdateAction
Action to update enchantment glint.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface TrackerUpdateAction
TrackerUpdateAction.Billboard, TrackerUpdateAction.Brightness, TrackerUpdateAction.Composite, TrackerUpdateAction.Enchant, TrackerUpdateAction.Glow, TrackerUpdateAction.GlowColor, TrackerUpdateAction.ItemMapping, TrackerUpdateAction.ItemStack, TrackerUpdateAction.MoveDuration, TrackerUpdateAction.None, TrackerUpdateAction.PerBone, TrackerUpdateAction.PreviousTint, TrackerUpdateAction.Tint, TrackerUpdateAction.TogglePart, TrackerUpdateAction.ViewRange -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(@NotNull RenderedBone bone, @NotNull BonePredicate predicate) Applies the action to a bone if it matches the predicate.static TrackerUpdateAction.EnchantReturns the enum constant of this class with the specified name.static TrackerUpdateAction.Enchant[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface BiPredicate
and, negate, orMethods inherited from interface TrackerUpdateAction
stream, then
-
Enum Constant Details
-
TRUE
-
FALSE
-
-
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
-
test
Description copied from interface:TrackerUpdateActionApplies the action to a bone if it matches the predicate.- Specified by:
testin interfaceBiPredicate<RenderedBone, BonePredicate>- Specified by:
testin interfaceTrackerUpdateAction- Parameters:
bone- the target bonepredicate- the predicate to check against- Returns:
- true if the bone was updated
-