Package com.petrolpark.client.sprite
Record Class SmallBannerSpriteSource.Squeeze
java.lang.Object
java.lang.Record
com.petrolpark.client.sprite.SmallBannerSpriteSource.Squeeze
- 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:
SmallBannerSpriteSource
protected static record SmallBannerSpriteSource.Squeeze(net.minecraft.resources.ResourceLocation id, net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage image)
extends Record
implements net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSqueeze(net.minecraft.resources.ResourceLocation id, net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage image) Creates an instance of aSqueezerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.texture.SpriteContentsapply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader resourceLoader) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImageimage()Returns the value of theimagerecord component.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 net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
discard
-
Constructor Details
-
Squeeze
protected Squeeze(net.minecraft.resources.ResourceLocation id, net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage image) Creates an instance of aSqueezerecord class.- Parameters:
id- the value for theidrecord componentimage- the value for theimagerecord component
-
-
Method Details
-
apply
public net.minecraft.client.renderer.texture.SpriteContents apply(net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader resourceLoader) -
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). -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
image
public net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage image()Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-