Record Class BannerPatternsComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.BannerPatternsComponent
Record Components:
layers -

public record BannerPatternsComponent(List<BannerPatternsComponent.Layer> layers) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/BannerPatternsComponent
intermediary net/minecraft/class_9307
official dun
named layers
intermediary comp_2428
official d
  • Field Details

    • layers

      private final List<BannerPatternsComponent.Layer> layers
      The field for the layers record component.
    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/component/type/BannerPatternsComponent;LOGGER:Lorg/slf4j/Logger;
      intermediary field_49761 Lnet/minecraft/class_9307;field_49761:Lorg/slf4j/Logger;
      official e Ldun;e:Lorg/slf4j/Logger;
    • DEFAULT

      public static final BannerPatternsComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/BannerPatternsComponent;DEFAULT:Lnet/minecraft/component/type/BannerPatternsComponent;
      intermediary field_49404 Lnet/minecraft/class_9307;field_49404:Lnet/minecraft/class_9307;
      official a Ldun;a:Ldun;
    • CODEC

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

      public static final PacketCodec<RegistryByteBuf,BannerPatternsComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/BannerPatternsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49406 Lnet/minecraft/class_9307;field_49406:Lnet/minecraft/class_9139;
      official c Ldun;c:Lzt;
  • Constructor Details

  • Method Details

    • withoutTopLayer

      public BannerPatternsComponent withoutTopLayer()
      Mappings:
      Namespace Name Mixin selector
      named withoutTopLayer Lnet/minecraft/component/type/BannerPatternsComponent;withoutTopLayer()Lnet/minecraft/component/type/BannerPatternsComponent;
      intermediary method_57571 Lnet/minecraft/class_9307;method_57571()Lnet/minecraft/class_9307;
      official a Ldun;a()Ldun;
    • 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.
    • layers

      Returns the value of the layers record component.
      Returns:
      the value of the layers record component