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.
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • of Link icon

      public static ItemGuideColorData of(Supplier<RGBA> color, Supplier<RGBA> selectedColor, Supplier<RGBA> rangedGrabColor)
    • of Link icon

      public static ItemGuideColorData of(List<RGBA> colors, List<RGBA> selectedColors, List<RGBA> rangedGrabColors, int transitionTimeMS)
    • withChangedTransitionTime Link icon

      public ItemGuideColorData withChangedTransitionTime(int newTransitionTimeMS)
    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • colors Link icon

      public Supplier<List<RGBA>> colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component
    • selectedColors Link icon

      public Supplier<List<RGBA>> selectedColors()
      Returns the value of the selectedColors record component.
      Returns:
      the value of the selectedColors record component
    • rangedGrabColors Link icon

      public Supplier<List<RGBA>> rangedGrabColors()
      Returns the value of the rangedGrabColors record component.
      Returns:
      the value of the rangedGrabColors record component
    • transitionTimeMS Link icon

      public Supplier<Integer> transitionTimeMS()
      Returns the value of the transitionTimeMS record component.
      Returns:
      the value of the transitionTimeMS record component