Record Class FilterAtlasSource
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.FilterAtlasSource
- Record Components:
pattern
-
- All Implemented Interfaces:
AtlasSource
@Environment(CLIENT)
public record FilterAtlasSource(BlockEntry pattern)
extends Record
implements AtlasSource
- Mappings:
Namespace Name named net/minecraft/client/texture/atlas/FilterAtlasSource
intermediary net/minecraft/class_7956
official hld
named pattern
intermediary comp_3621
official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.texture.atlas.AtlasSource
AtlasSource.SpriteRegion, AtlasSource.SpriteRegions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<FilterAtlasSource> private final BlockEntry
The field for thepattern
record component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSource
RESOURCE_FINDER
-
Constructor Summary
ConstructorsConstructorDescriptionFilterAtlasSource
(BlockEntry pattern) Creates an instance of aFilterAtlasSource
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<FilterAtlasSource> getCodec()
final int
hashCode()
Returns a hash code value for this object.void
load
(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) pattern()
Returns the value of thepattern
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pattern
The field for thepattern
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/texture/atlas/FilterAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_41407
Lnet/minecraft/class_7956;field_41407:Lcom/mojang/serialization/MapCodec;
official b
Lhld;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FilterAtlasSource
Creates an instance of aFilterAtlasSource
record class.- Parameters:
pattern
- the value for thepattern
record component
-
-
Method Details
-
load
- Specified by:
load
in interfaceAtlasSource
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/client/texture/atlas/AtlasSource;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegions;)V
intermediary method_47673
Lnet/minecraft/class_7948;method_47673(Lnet/minecraft/class_3300;Lnet/minecraft/class_7948$class_7949;)V
official a
Lhkv;a(Lavo;Lhkv$a;)V
-
getCodec
- Specified by:
getCodec
in interfaceAtlasSource
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/client/texture/atlas/AtlasSource;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_67288
Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;
official a
Lhkv;a()Lcom/mojang/serialization/MapCodec;
-
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)
. -
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-