Package net.minecraft.component.type
Record Class BannerPatternsComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.BannerPatternsComponent
- Record Components:
layers-
- Mappings:
Namespace Name official dmfintermediary net/minecraft/class_9307named net/minecraft/component/type/BannerPatternsComponentofficial dintermediary comp_2428named layers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BannerPatternsComponent> static final BannerPatternsComponent(package private) static final Loggerprivate final List<BannerPatternsComponent.Layer> The field for thelayersrecord component.static final PacketCodec<RegistryByteBuf, BannerPatternsComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layers()Returns the value of thelayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
layers
The field for thelayersrecord component. -
field_49761
- Mappings:
Namespace Name Mixin selector official eLdmf;e:Lorg/slf4j/Logger;intermediary field_49761Lnet/minecraft/class_9307;field_49761:Lorg/slf4j/Logger;named field_49761Lnet/minecraft/component/type/BannerPatternsComponent;field_49761:Lorg/slf4j/Logger;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official aLdmf;a:Ldmf;intermediary field_49404Lnet/minecraft/class_9307;field_49404:Lnet/minecraft/class_9307;named DEFAULTLnet/minecraft/component/type/BannerPatternsComponent;DEFAULT:Lnet/minecraft/component/type/BannerPatternsComponent;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLdmf;b:Lcom/mojang/serialization/Codec;intermediary field_49405Lnet/minecraft/class_9307;field_49405:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/BannerPatternsComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official cLdmf;c:Lyg;intermediary field_49406Lnet/minecraft/class_9307;field_49406:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/BannerPatternsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
BannerPatternsComponent
-
-
Method Details
-
withoutTopLayer
- Mappings:
Namespace Name Mixin selector official aLdmf;a()Ldmf;intermediary method_57571Lnet/minecraft/class_9307;method_57571()Lnet/minecraft/class_9307;named withoutTopLayerLnet/minecraft/component/type/BannerPatternsComponent;withoutTopLayer()Lnet/minecraft/component/type/BannerPatternsComponent;
-
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). -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-