Record Class WritableBookContentComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.WritableBookContentComponent
Record Components:
pages -

public record WritableBookContentComponent(List<RawFilteredPair<String>> pages) extends Record
Mappings:
Namespace Name
official cuu
intermediary net/minecraft/class_9301
named net/minecraft/component/type/WritableBookContentComponent
official e
intermediary comp_2418
named pages
  • Field Details

    • pages

      private final List<RawFilteredPair<String>> pages
      The field for the pages record component.
    • DEFAULT

      public static final WritableBookContentComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official a Lcuu;a:Lcuu;
      intermediary field_49369 Lnet/minecraft/class_9301;field_49369:Lnet/minecraft/class_9301;
      named DEFAULT Lnet/minecraft/component/type/WritableBookContentComponent;DEFAULT:Lnet/minecraft/component/type/WritableBookContentComponent;
    • MAX_PAGE_LENGTH

      public static final int MAX_PAGE_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcuu;b:I
      intermediary field_49370 Lnet/minecraft/class_9301;field_49370:I
      named MAX_PAGE_LENGTH Lnet/minecraft/component/type/WritableBookContentComponent;MAX_PAGE_LENGTH:I
    • PAGE_CODEC

      private static final com.mojang.serialization.Codec<RawFilteredPair<String>> PAGE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official f Lcuu;f:Lcom/mojang/serialization/Codec;
      intermediary field_49373 Lnet/minecraft/class_9301;field_49373:Lcom/mojang/serialization/Codec;
      named PAGE_CODEC Lnet/minecraft/component/type/WritableBookContentComponent;PAGE_CODEC:Lcom/mojang/serialization/Codec;
    • PAGES_CODEC

      private static final com.mojang.serialization.Codec<List<RawFilteredPair<String>>> PAGES_CODEC
      Mappings:
      Namespace Name Mixin selector
      official g Lcuu;g:Lcom/mojang/serialization/Codec;
      intermediary field_49374 Lnet/minecraft/class_9301;field_49374:Lcom/mojang/serialization/Codec;
      named PAGES_CODEC Lnet/minecraft/component/type/WritableBookContentComponent;PAGES_CODEC:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<WritableBookContentComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lcuu;c:Lcom/mojang/serialization/Codec;
      intermediary field_49371 Lnet/minecraft/class_9301;field_49371:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/component/type/WritableBookContentComponent;CODEC:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,WritableBookContentComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lcuu;d:Lyg;
      intermediary field_49372 Lnet/minecraft/class_9301;field_49372:Lnet/minecraft/class_9139;
      named PACKET_CODEC Lnet/minecraft/component/type/WritableBookContentComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
  • Constructor Details

  • Method Details

    • stream

      public Stream<String> stream(boolean shouldFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Lcuu;a(Z)Ljava/util/stream/Stream;
      intermediary method_57517 Lnet/minecraft/class_9301;method_57517(Z)Ljava/util/stream/Stream;
      named stream Lnet/minecraft/component/type/WritableBookContentComponent;stream(Z)Ljava/util/stream/Stream;
    • 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.
    • pages

      public List<RawFilteredPair<String>> pages()
      Returns the value of the pages record component.
      Returns:
      the value of the pages record component