Class NamedGui

java.lang.Object
com.github.stefvanschie.inventoryframework.gui.type.util.Gui
com.github.stefvanschie.inventoryframework.gui.type.util.NamedGui
Direct Known Subclasses:
AnvilGui, BarrelGui, BlastFurnaceGui, BrewingStandGui, CartographyTableGui, ChestGui, CrafterGui, CraftingTableGui, DispenserGui, DropperGui, EnchantingTableGui, EnderChestGui, FurnaceGui, GrindstoneGui, HopperGui, LoomGui, MerchantGui, ModernSmithingTableGui, ShulkerBoxGui, SmithingTableGui, SmokerGui, StonecutterGui

public abstract class NamedGui extends Gui
  • Constructor Details

    • NamedGui

      public NamedGui(@NotNull @NotNull String title)
      Constructs a new gui with a title
      Parameters:
      title - the title/name of this gui
      Since:
      0.8.0
    • NamedGui

      public NamedGui(@NotNull @NotNull com.github.stefvanschie.inventoryframework.adventuresupport.TextHolder title)
      Constructs a new gui with a title
      Parameters:
      title - the title/name of this gui
      Since:
      0.10.0
    • NamedGui

      public NamedGui(@NotNull @NotNull String title, @NotNull @NotNull Plugin plugin)
      Constructs a new gui with a title for the given plugin.
      Parameters:
      title - the title/name of this gui
      plugin - the owning plugin of this gui
      Since:
      0.10.8
      See Also:
    • NamedGui

      public NamedGui(@NotNull @NotNull com.github.stefvanschie.inventoryframework.adventuresupport.TextHolder title, @NotNull @NotNull Plugin plugin)
      Constructs a new gui with a title for the given plugin.
      Parameters:
      title - the title/name of this gui
      plugin - the owning plugin of this gui
      Since:
      0.10.8
      See Also:
  • Method Details

    • setTitle

      public void setTitle(@NotNull @NotNull String title)
      Sets the title for this inventory.
      Parameters:
      title - the title
    • setTitle

      public void setTitle(@NotNull @NotNull com.github.stefvanschie.inventoryframework.adventuresupport.TextHolder title)
      Sets the title for this inventory.
      Parameters:
      title - the title
      Since:
      0.10.0
    • getTitle

      @NotNull @Contract(pure=true) public @NotNull String getTitle()
      Returns the title of this gui as a legacy string.
      Returns:
      the title
      Since:
      0.8.0
    • getTitleHolder

      @NotNull @Contract(pure=true) public @NotNull com.github.stefvanschie.inventoryframework.adventuresupport.TextHolder getTitleHolder()
      Returns the title of this GUI in a wrapped form.
      Returns:
      the title
      Since:
      0.10.0
    • isDirty

      @Contract(pure=true) @Deprecated public boolean isDirty()
      Deprecated.
      use Gui.isDirty() instead.
      Gets whether this title is dirty or not i.e. whether the title has changed.
      Overrides:
      isDirty in class Gui
      Returns:
      whether the title is dirty
      Since:
      0.10.0
    • markChanges

      @Deprecated public void markChanges()
      Deprecated.
      use Gui.markChanges() instead.
      Marks that the changes present here have been accepted. This sets dirty to false. If dirty was already false, this will do nothing.
      Overrides:
      markChanges in class Gui
      Since:
      0.10.0