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
named net/minecraft/component/type/BannerPatternsComponent$Layer
intermediary net/minecraft/class_9307$class_9308
official dpa$b
named pattern
intermediary comp_2429
official c
named color
intermediary comp_2430
official d
  • Field Details

    • pattern

      private final RegistryEntry<BannerPattern> pattern
      The field for the pattern record component.
    • color

      private final DyeColor color
      The field for the color record component.
    • CODEC

      public static final com.mojang.serialization.Codec<BannerPatternsComponent.Layer> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/BannerPatternsComponent$Layer;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49407 Lnet/minecraft/class_9307$class_9308;field_49407:Lcom/mojang/serialization/Codec;
      official a Ldpa$b;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,BannerPatternsComponent.Layer> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/BannerPatternsComponent$Layer;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49408 Lnet/minecraft/class_9307$class_9308;field_49408:Lnet/minecraft/class_9139;
      official b Ldpa$b;b:Lzn;
  • Constructor Details

  • Method Details

    • getTooltipText

      public MutableText getTooltipText()
      Mappings:
      Namespace Name Mixin selector
      named getTooltipText Lnet/minecraft/component/type/BannerPatternsComponent$Layer;getTooltipText()Lnet/minecraft/text/MutableText;
      intermediary method_58125 Lnet/minecraft/class_9307$class_9308;method_58125()Lnet/minecraft/class_5250;
      official a Ldpa$b;a()Lyd;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • pattern

      public RegistryEntry<BannerPattern> pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • color

      public DyeColor color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component