Package kr.toxicity.model.api.tracker
Record Class TrackerUpdateAction.Brightness
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.TrackerUpdateAction.Brightness
- Record Components:
block- block brightnesssky- sky brightness
- All Implemented Interfaces:
BiPredicate<RenderedBone,,BonePredicate> TrackerUpdateAction
- Enclosing interface:
TrackerUpdateAction
public static record TrackerUpdateAction.Brightness(int block, int sky)
extends Record
implements TrackerUpdateAction
Brightness
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.tracker.TrackerUpdateAction
TrackerUpdateAction.Billboard, TrackerUpdateAction.Brightness, TrackerUpdateAction.Enchant, TrackerUpdateAction.Glow, TrackerUpdateAction.GlowColor, TrackerUpdateAction.ItemStack, TrackerUpdateAction.Tint, TrackerUpdateAction.TogglePart -
Constructor Summary
ConstructorsConstructorDescriptionBrightness(int block, int sky) Creates an instance of aBrightnessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsky()Returns the value of theskyrecord component.booleantest(@NotNull RenderedBone bone, @NotNull BonePredicate predicate) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<RenderedBone,BonePredicate> - Specified by:
testin interfaceTrackerUpdateAction
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
block
public int block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
sky
public int sky()Returns the value of theskyrecord component.- Returns:
- the value of the
skyrecord component
-