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(AtlasSprite baseImage, Supplier<IntUnaryOperator> palette, Identifier permutationLocation)
extends Record
implements AtlasSource.SpriteRegion
- Mappings:
- Namespace - Name - named - net/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegion- intermediary - net/minecraft/class_8066$class_8067- official - hff$a- named - baseImage- intermediary - comp_1216- official - a- named - palette- intermediary - comp_1217- official - b- named - permutationLocation- intermediary - comp_1218- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final AtlasSpriteThe field for thebaseImagerecord component.private final Supplier<IntUnaryOperator> The field for thepaletterecord component.private final IdentifierThe field for thepermutationLocationrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPalettedSpriteRegion(AtlasSprite atlasSprite, Supplier<IntUnaryOperator> supplier, Identifier identifier) 
- 
Method SummaryModifier and TypeMethodDescriptionapply(SpriteOpener spriteOpener) Returns the value of thebaseImagerecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.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- 
baseImageThe field for thebaseImagerecord component.
- 
paletteThe field for thepaletterecord component.
- 
permutationLocationThe field for thepermutationLocationrecord component.
 
- 
- 
Constructor Details- 
PalettedSpriteRegionPalettedSpriteRegion(AtlasSprite atlasSprite, Supplier<IntUnaryOperator> supplier, Identifier identifier) 
 
- 
- 
Method Details- 
apply- Specified by:
- applyin interface- Function<SpriteOpener,- SpriteContents> 
- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/client/texture/atlas/PalettedPermutationsAtlasSource$PalettedSpriteRegion;apply(Lnet/minecraft/client/texture/SpriteOpener;)Lnet/minecraft/client/texture/SpriteContents;- intermediary - method_52853- Lnet/minecraft/class_8066$class_8067;method_52853(Lnet/minecraft/class_8684;)Lnet/minecraft/class_7764;- official - a- Lhff$a;a(Lhex;)Lhen;
 
- 
closepublic void close()- Specified by:
- closein interface- AtlasSource.SpriteRegion
- Mappings:
- Namespace - Name - Mixin selector - named - close- Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegion;close()V- intermediary - method_47676- Lnet/minecraft/class_7948$class_7950;method_47676()V- official - a- Lhey$b;a()V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
baseImageReturns the value of thebaseImagerecord component.- Returns:
- the value of the baseImagerecord component
 
- 
paletteReturns the value of thepaletterecord component.- Returns:
- the value of the paletterecord component
 
- 
permutationLocationReturns the value of thepermutationLocationrecord component.- Returns:
- the value of the permutationLocationrecord component
 
 
-