Record Class OpenPalettedPermutations.OpenPalettedSpriteSupplier

java.lang.Object
java.lang.Record
dev.dhyces.trimmed.impl.client.atlas.OpenPalettedPermutations.OpenPalettedSpriteSupplier
All Implemented Interfaces:
Function<net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader,net.minecraft.client.renderer.texture.SpriteContents>, net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
Enclosing class:
OpenPalettedPermutations

public static record OpenPalettedPermutations.OpenPalettedSpriteSupplier(net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage, OpenPalettedPermutations.OptionalSupplier optionalSupplier, net.minecraft.resources.ResourceLocation permutedId) extends Record implements net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenPalettedSpriteSupplier(net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage, OpenPalettedPermutations.OptionalSupplier optionalSupplier, net.minecraft.resources.ResourceLocation permutedId)
    Creates an instance of a OpenPalettedSpriteSupplier record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.texture.SpriteContents
    apply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader spriteResourceLoader)
     
    void
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage
    Returns the value of the lazyLoadedImage record component.
    Returns the value of the optionalSupplier record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the permutedId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • OpenPalettedSpriteSupplier

      public OpenPalettedSpriteSupplier(net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage, OpenPalettedPermutations.OptionalSupplier optionalSupplier, net.minecraft.resources.ResourceLocation permutedId)
      Creates an instance of a OpenPalettedSpriteSupplier record class.
      Parameters:
      lazyLoadedImage - the value for the lazyLoadedImage record component
      optionalSupplier - the value for the optionalSupplier record component
      permutedId - the value for the permutedId record component
  • Method Details

    • apply

      public net.minecraft.client.renderer.texture.SpriteContents apply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader spriteResourceLoader)
      Specified by:
      apply in interface Function<net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader,net.minecraft.client.renderer.texture.SpriteContents>
    • discard

      public void discard()
      Specified by:
      discard in interface net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
    • toString

      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

      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

      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.
    • lazyLoadedImage

      public net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage()
      Returns the value of the lazyLoadedImage record component.
      Returns:
      the value of the lazyLoadedImage record component
    • optionalSupplier

      public OpenPalettedPermutations.OptionalSupplier optionalSupplier()
      Returns the value of the optionalSupplier record component.
      Returns:
      the value of the optionalSupplier record component
    • permutedId

      public net.minecraft.resources.ResourceLocation permutedId()
      Returns the value of the permutedId record component.
      Returns:
      the value of the permutedId record component