Package net.minecraft.component.type
Record Class BannerPatternsComponent.Layer
java.lang.Object
java.lang.Record
net.minecraft.component.type.BannerPatternsComponent.Layer
- Record Components:
pattern
-color
-
- Enclosing class:
BannerPatternsComponent
public static record BannerPatternsComponent.Layer(RegistryEntry<BannerPattern> pattern, DyeColor color)
extends Record
- Mappings:
Namespace Name official dnd$b
intermediary net/minecraft/class_9307$class_9308
named net/minecraft/component/type/BannerPatternsComponent$Layer
official c
intermediary comp_2429
named pattern
official d
intermediary comp_2430
named color
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BannerPatternsComponent.Layer> private final DyeColor
The field for thecolor
record component.static final PacketCodec
<RegistryByteBuf, BannerPatternsComponent.Layer> private final RegistryEntry
<BannerPattern> The field for thepattern
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.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. -
color
The field for thecolor
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldnd$b;a:Lcom/mojang/serialization/Codec;
intermediary field_49407
Lnet/minecraft/class_9307$class_9308;field_49407:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/component/type/BannerPatternsComponent$Layer;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official b
Ldnd$b;b:Lys;
intermediary field_49408
Lnet/minecraft/class_9307$class_9308;field_49408:Lnet/minecraft/class_9139;
named PACKET_CODEC
Lnet/minecraft/component/type/BannerPatternsComponent$Layer;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
Layer
-
-
Method Details
-
getTooltipText
- Mappings:
Namespace Name Mixin selector official a
Ldnd$b;a()Lxi;
intermediary method_58125
Lnet/minecraft/class_9307$class_9308;method_58125()Lnet/minecraft/class_5250;
named getTooltipText
Lnet/minecraft/component/type/BannerPatternsComponent$Layer;getTooltipText()Lnet/minecraft/text/MutableText;
-
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
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-