Record Class BookScreen.Contents

java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.ingame.BookScreen.Contents
Record Components:
pages -
Enclosing class:
BookScreen

@Environment(CLIENT) public static record BookScreen.Contents(List<Text> pages) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/ingame/BookScreen$Contents
intermediary net/minecraft/class_3872$class_3931
official fuu$a
named pages
intermediary comp_2438
official a
  • Field Details

    • pages

      private final List<Text> pages
      The field for the pages record component.
  • Constructor Details

    • Contents

      public Contents(List<Text> list)
  • Method Details

    • getPageCount

      public int getPageCount()
      Mappings:
      Namespace Name Mixin selector
      named getPageCount Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;getPageCount()I
      intermediary method_17560 Lnet/minecraft/class_3872$class_3931;method_17560()I
      official a Lfuu$a;a()I
    • getPage

      public StringVisitable getPage(int index)
      Mappings:
      Namespace Name Mixin selector
      named getPage Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;getPage(I)Lnet/minecraft/text/StringVisitable;
      intermediary method_17563 Lnet/minecraft/class_3872$class_3931;method_17563(I)Lnet/minecraft/class_5348;
      official a Lfuu$a;a(I)Lya;
    • create

      @Nullable public static @Nullable BookScreen.Contents create(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;create(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/client/gui/screen/ingame/BookScreen$Contents;
      intermediary method_17562 Lnet/minecraft/class_3872$class_3931;method_17562(Lnet/minecraft/class_1799;)Lnet/minecraft/class_3872$class_3931;
      official a Lfuu$a;a(Lcxo;)Lfuu$a;
    • 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<Text> pages()
      Returns the value of the pages record component.
      Returns:
      the value of the pages record component