Enum Class TrackerUpdateAction.TogglePart

java.lang.Object
java.lang.Enum<TrackerUpdateAction.TogglePart>
kr.toxicity.model.api.tracker.TrackerUpdateAction.TogglePart
All Implemented Interfaces:
Serializable, Comparable<TrackerUpdateAction.TogglePart>, Constable, BiPredicate<RenderedBone, BonePredicate>, TrackerUpdateAction
Enclosing interface:
TrackerUpdateAction

public static enum TrackerUpdateAction.TogglePart extends Enum<TrackerUpdateAction.TogglePart> implements TrackerUpdateAction
Action to toggle part visibility.
Since:
1.15.2
  • Enum Constant Details

  • Method Details

    • values

      public static TrackerUpdateAction.TogglePart[] 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

      public static TrackerUpdateAction.TogglePart valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • test

      public boolean test(@NotNull @NotNull RenderedBone bone, @NotNull @NotNull BonePredicate predicate)
      Description copied from interface: TrackerUpdateAction
      Applies the action to a bone if it matches the predicate.
      Specified by:
      test in interface BiPredicate<RenderedBone, BonePredicate>
      Specified by:
      test in interface TrackerUpdateAction
      Parameters:
      bone - the target bone
      predicate - the predicate to check against
      Returns:
      true if the bone was updated