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:
Function<SpriteOpener,
,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 fzp$a
intermediary net/minecraft/class_8066$class_8067
named net/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegion
official a
intermediary comp_1216
named baseImage
official b
intermediary comp_1217
named palette
official c
intermediary comp_1218
named permutationLocation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Sprite
The field for thebaseImage
record component.private final Supplier<IntUnaryOperator>
The field for thepalette
record component.private final Identifier
The field for thepermutationLocation
record component. -
Constructor Summary
ConstructorDescriptionPalettedSpriteRegion
(Sprite sprite, Supplier<IntUnaryOperator> supplier, Identifier identifier) -
Method Summary
Modifier and TypeMethodDescription@Nullable SpriteContents
apply
(SpriteOpener spriteOpener) Returns the value of thebaseImage
record component.void
close()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.palette()
Returns the value of thepalette
record component.Returns the value of thepermutationLocation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
baseImage
The field for thebaseImage
record component. -
palette
The field for thepalette
record component. -
permutationLocation
The field for thepermutationLocation
record component.
-
-
Constructor Details
-
PalettedSpriteRegion
PalettedSpriteRegion(Sprite sprite, Supplier<IntUnaryOperator> supplier, Identifier identifier)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<SpriteOpener,
SpriteContents> - Mappings:
Namespace Name Mixin selector official a
Lfzp$a;a(Lfzh;)Lfyy;
intermediary method_52853
Lnet/minecraft/class_8066$class_8067;method_52853(Lnet/minecraft/class_8684;)Lnet/minecraft/class_7764;
named apply
Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegion;apply(Lnet/minecraft/client/texture/SpriteOpener;)Lnet/minecraft/client/texture/SpriteContents;
-
close
public void close()- Specified by:
close
in interfaceAtlasSource.SpriteRegion
- Mappings:
Namespace Name Mixin selector official a
Lfzi$b;a()V
intermediary method_47676
Lnet/minecraft/class_7948$class_7950;method_47676()V
named close
Lnet/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 thebaseImage
record component.- Returns:
- the value of the
baseImage
record component
-
palette
Returns the value of thepalette
record component.- Returns:
- the value of the
palette
record component
-
permutationLocation
Returns the value of thepermutationLocation
record component.- Returns:
- the value of the
permutationLocation
record component
-