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
ConstructorsConstructorDescriptionOpenPalettedSpriteSupplier(net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage, OpenPalettedPermutations.OptionalSupplier optionalSupplier, net.minecraft.resources.ResourceLocation permutedId) Creates an instance of aOpenPalettedSpriteSupplierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.texture.SpriteContentsapply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader spriteResourceLoader) voiddiscard()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImageReturns the value of thelazyLoadedImagerecord component.Returns the value of theoptionalSupplierrecord component.net.minecraft.resources.ResourceLocationReturns the value of thepermutedIdrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aOpenPalettedSpriteSupplierrecord class.- Parameters:
lazyLoadedImage- the value for thelazyLoadedImagerecord componentoptionalSupplier- the value for theoptionalSupplierrecord componentpermutedId- the value for thepermutedIdrecord component
-
-
Method Details
-
apply
public net.minecraft.client.renderer.texture.SpriteContents apply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader spriteResourceLoader) -
discard
public void discard()- Specified by:
discardin interfacenet.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
-
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). -
lazyLoadedImage
public net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage lazyLoadedImage()Returns the value of thelazyLoadedImagerecord component.- Returns:
- the value of the
lazyLoadedImagerecord component
-
optionalSupplier
Returns the value of theoptionalSupplierrecord component.- Returns:
- the value of the
optionalSupplierrecord component
-
permutedId
public net.minecraft.resources.ResourceLocation permutedId()Returns the value of thepermutedIdrecord component.- Returns:
- the value of the
permutedIdrecord component
-