Class PageContent

java.lang.Object
org.cloudburstmc.server.utils.PageContent
All Implemented Interfaces:
org.cloudburstmc.api.item.data.Page

public class PageContent extends Object implements org.cloudburstmc.api.item.data.Page
  • Constructor Details

    • PageContent

      public PageContent()
  • Method Details

    • from

      public static PageContent from(com.nukkitx.nbt.NbtMap tag)
    • from

      public static PageContent from(String text)
    • from

      public static PageContent from(String text, String photoName)
    • getText

      public String getText()
      Specified by:
      getText in interface org.cloudburstmc.api.item.data.Page
    • getPhotoName

      public String getPhotoName()
      Specified by:
      getPhotoName in interface org.cloudburstmc.api.item.data.Page
    • createTag

      public com.nukkitx.nbt.NbtMap createTag()
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.cloudburstmc.api.item.data.Page