Record Class ItemGuideColorData
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.common.config.ItemGuideColorData
- Record Components:
colors
- Supplier of a list of colors to transition between for item guides.selectedColors
- Supplier of a list of colors to transition between for selected item guides.rangedGrabColors
- Supplier of a list of colors to transition between for ranged grab particles.transitionTimeMS
- Supplier of the time to transition between colors in the list in milliseconds. Should be a constant time!
public record ItemGuideColorData(Supplier<List<RGBA>> colors, Supplier<List<RGBA>> selectedColors, Supplier<List<RGBA>> rangedGrabColors, Supplier<Integer> transitionTimeMS)
extends Record
Contains the data for item guide coloring.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolors()
Returns the value of thecolors
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static ItemGuideColorData
static ItemGuideColorData
Returns the value of therangedGrabColors
record component.Returns the value of theselectedColors
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransitionTimeMS
record component.withChangedTransitionTime
(int newTransitionTimeMS)
-
Field Details
-
Constructor Details
-
ItemGuideColorData
public ItemGuideColorData(Supplier<List<RGBA>> colors, Supplier<List<RGBA>> selectedColors, Supplier<List<RGBA>> rangedGrabColors, Supplier<Integer> transitionTimeMS) Creates an instance of aItemGuideColorData
record class.- Parameters:
colors
- the value for thecolors
record componentselectedColors
- the value for theselectedColors
record componentrangedGrabColors
- the value for therangedGrabColors
record componenttransitionTimeMS
- the value for thetransitionTimeMS
record component
-
-
Method Details
-
of
-
of
-
withChangedTransitionTime
-
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 withObjects::equals(Object,Object)
. -
colors
Returns the value of thecolors
record component.- Returns:
- the value of the
colors
record component
-
selectedColors
Returns the value of theselectedColors
record component.- Returns:
- the value of the
selectedColors
record component
-
rangedGrabColors
Returns the value of therangedGrabColors
record component.- Returns:
- the value of the
rangedGrabColors
record component
-
transitionTimeMS
Returns the value of thetransitionTimeMS
record component.- Returns:
- the value of the
transitionTimeMS
record component
-