Class Page

java.lang.Object
com.zenith.feature.gui.Page

@NullMarked public class Page extends Object
  • Constructor Details

    • Page

      public Page(ContainerType type, net.kyori.adventure.text.Component title, List<Slot> contents)
  • Method Details

    • setContents

      public void setContents(List<Slot> contents)
    • setContent

      public void setContent(int index, Slot slot)
    • type

      public ContainerType type()
    • title

      public net.kyori.adventure.text.Component title()
    • setTitle

      public void setTitle(net.kyori.adventure.text.Component title)
    • open

      protected void open(Gui gui)
    • sendContents

      protected void sendContents(Gui gui)
    • tick

      protected void tick(Gui gui)
    • onClick

      protected void onClick(Gui gui, ContainerClick containerClick)
    • setStale

      public void setStale()
    • close

      protected void close(Gui gui)
    • onPageSwitch

      protected void onPageSwitch(Gui gui)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object