Record Class PalettedPermutationsAtlasSource.PalettedSpriteRegion
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.PalettedPermutationsAtlasSource.PalettedSpriteRegion
- Record Components:
baseImage-palette-permutationLocation-
- All Implemented Interfaces:
Supplier<SpriteContents>,AtlasSource.SpriteRegion
- Enclosing class:
PalettedPermutationsAtlasSource
@Environment(CLIENT)
private static record PalettedPermutationsAtlasSource.PalettedSpriteRegion(Sprite baseImage, Supplier<IntUnaryOperator> palette, Identifier permutationLocation)
extends Record
implements AtlasSource.SpriteRegion
- Mappings:
Namespace Name official fuu$aintermediary net/minecraft/class_8066$class_8067named net/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegionofficial aintermediary comp_1216named baseImageofficial bintermediary comp_1217named paletteofficial cintermediary comp_1218named permutationLocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpriteThe field for thebaseImagerecord component.private final Supplier<IntUnaryOperator>The field for thepaletterecord component.private final IdentifierThe field for thepermutationLocationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPalettedSpriteRegion(Sprite sprite, Supplier<IntUnaryOperator> supplier, Identifier identifier) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseImagerecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.get()final inthashCode()Returns a hash code value for this object.palette()Returns the value of thepaletterecord component.Returns the value of thepermutationLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
baseImage
The field for thebaseImagerecord component. -
palette
The field for thepaletterecord component. -
permutationLocation
The field for thepermutationLocationrecord component.
-
-
Constructor Details
-
PalettedSpriteRegion
PalettedSpriteRegion(Sprite sprite, Supplier<IntUnaryOperator> supplier, Identifier identifier)
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<SpriteContents>- Mappings:
Namespace Name Mixin selector official bLfuu$a;b()Lfue;intermediary method_48495Lnet/minecraft/class_8066$class_8067;method_48495()Lnet/minecraft/class_7764;named getLnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegion;get()Lnet/minecraft/client/texture/SpriteContents;
-
close
public void close()- Specified by:
closein interfaceAtlasSource.SpriteRegion- Mappings:
Namespace Name Mixin selector official aLfuo$b;a()Vintermediary method_47676Lnet/minecraft/class_7948$class_7950;method_47676()Vnamed closeLnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegion;close()V
-
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). -
baseImage
Returns the value of thebaseImagerecord component.- Returns:
- the value of the
baseImagerecord component
-
palette
Returns the value of thepaletterecord component.- Returns:
- the value of the
paletterecord component
-
permutationLocation
Returns the value of thepermutationLocationrecord component.- Returns:
- the value of the
permutationLocationrecord component
-