java.lang.Object
com.hammy275.immersivemc.common.immersive.storage.network.impl.BookData
com.hammy275.immersivemc.client.immersive_item.info.ClientBookData
All Implemented Interfaces:
NetworkStorage, WorldStorage

public class ClientBookData extends BookData
  • Field Details

    • bookModel

      public static final net.minecraft.client.model.BookModel bookModel
    • writtenBookTexture

      public static final net.minecraft.resources.ResourceLocation writtenBookTexture
    • left

      public net.minecraft.network.chat.FormattedText left
    • clickInfos

      public List<ClientBookData.BookClickInfo> clickInfos
    • selectedClickInfos

      public int[] selectedClickInfos
    • book

      public net.minecraft.world.item.ItemStack book
  • Constructor Details

    • ClientBookData

      public ClientBookData(boolean authoritative)
    • ClientBookData

      public ClientBookData(boolean authoritative, net.minecraft.world.item.ItemStack book)
  • Method Details

    • processFromNetwork

      public void processFromNetwork(BookData data)
    • getClickBoxes

      public BoundingBox[] getClickBoxes()
    • getPageCount

      protected int getPageCount()
      Overrides:
      getPageCount in class BookData
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack stack, PosRot hand)
    • renderPage

      protected void renderPage(com.mojang.blaze3d.vertex.PoseStack stack, PosRot hand, net.minecraft.network.chat.FormattedText textRaw, boolean leftPage)
    • tick

      public void tick(PosRot hand, PosRot... others)
      Overrides:
      tick in class BookData
    • doPageInteract

      public boolean doPageInteract(int selectedIndex)
    • doPageInteract

      public void doPageInteract(ClientBookData.BookClickInfo clickInfo)
    • setClickPositions

      protected void setClickPositions(PosRot hand, boolean isLeft)
    • addClickableStyle

      protected void addClickableStyle(List<net.minecraft.world.phys.Vec3> positions, net.minecraft.network.chat.Style style, double length, PosRot hand, boolean isLeft)