Package net.minecraft.component.type
Record Class BannerPatternsComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.BannerPatternsComponent
- Record Components:
layers-
- All Implemented Interfaces:
TooltipAppender
public record BannerPatternsComponent(List<BannerPatternsComponent.Layer> layers)
extends Record
implements TooltipAppender
- Mappings:
Namespace Name named net/minecraft/component/type/BannerPatternsComponentintermediary net/minecraft/class_9307official dyenamed layersintermediary comp_2428official d
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BannerPatternsComponent> static final BannerPatternsComponentprivate final List<BannerPatternsComponent.Layer> The field for thelayersrecord component.(package private) static final Loggerstatic final PacketCodec<RegistryByteBuf, BannerPatternsComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) final 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. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/component/type/BannerPatternsComponent;LOGGER:Lorg/slf4j/Logger;intermediary field_49761Lnet/minecraft/class_9307;field_49761:Lorg/slf4j/Logger;official eLdye;e:Lorg/slf4j/Logger;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/BannerPatternsComponent;DEFAULT:Lnet/minecraft/component/type/BannerPatternsComponent;intermediary field_49404Lnet/minecraft/class_9307;field_49404:Lnet/minecraft/class_9307;official aLdye;a:Ldye;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/BannerPatternsComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49405Lnet/minecraft/class_9307;field_49405:Lcom/mojang/serialization/Codec;official bLdye;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/BannerPatternsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49406Lnet/minecraft/class_9307;field_49406:Lnet/minecraft/class_9139;official cLdye;c:Lze;
-
-
Constructor Details
-
BannerPatternsComponent
-
-
Method Details
-
withoutTopLayer
- Mappings:
Namespace Name Mixin selector named withoutTopLayerLnet/minecraft/component/type/BannerPatternsComponent;withoutTopLayer()Lnet/minecraft/component/type/BannerPatternsComponent;intermediary method_57571Lnet/minecraft/class_9307;method_57571()Lnet/minecraft/class_9307;official aLdye;a()Ldye;
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)Vofficial aLddp;a(Ldag$b;Ljava/util/function/Consumer;Ldbz;Lkg;)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). -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-