Class ExpandBookContent
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBookContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
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.
-