Record Class TrackerUpdateAction.Tint
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.TrackerUpdateAction.Tint
- Record Components:
rgb- the RGB tint color
- All Implemented Interfaces:
BiPredicate<RenderedBone, BonePredicate>, TrackerUpdateAction
- Enclosing interface:
TrackerUpdateAction
public static record TrackerUpdateAction.Tint(int rgb)
extends Record
implements TrackerUpdateAction
Action to apply a tint color.
- Since:
- 1.15.2
-
Nested Class Summary
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intrgb()Returns the value of thergbrecord component.booleantest(@NotNull RenderedBone bone, @NotNull BonePredicate predicate) Applies the action to a bone if it matches the predicate.final StringtoString()Returns a string representation of this record class.Methods inherited from interface BiPredicate
and, negate, orMethods inherited from interface TrackerUpdateAction
stream, then
-
Constructor Details
-
Tint
public Tint(int rgb) Creates an instance of aTintrecord class.- Parameters:
rgb- the value for thergbrecord component
-
-
Method Details
-
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
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
rgb
-