Class ExpandBookContent

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBookContent

@ZenRegister public class ExpandBookContent extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T, C> List<net.minecraft.server.network.Filterable<T>>
    pages(net.minecraft.world.item.component.BookContent<T,C> internal)
    Gets the pages of the book content.
    static <T, C> C
    withReplacedPages(net.minecraft.world.item.component.BookContent<T,C> internal, List<net.minecraft.server.network.Filterable<T>> list)
    Sets the pages of the book content.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandBookContent

      public ExpandBookContent()
  • Method Details

    • pages

      public static <T, C> List<net.minecraft.server.network.Filterable<T>> pages(net.minecraft.world.item.component.BookContent<T,C> internal)
      Gets the pages of the book content.
      Returns:
      The pages of the book content.
    • withReplacedPages

      public static <T, C> C withReplacedPages(net.minecraft.world.item.component.BookContent<T,C> internal, List<net.minecraft.server.network.Filterable<T>> list)
      Sets the pages of the book content.
      Parameters:
      list - The pages of the book content.
      Returns:
      The new book content.