Interface Background


public interface Background
Represents a background for a node or scene.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
    backgroundAt(int layoutX, int layoutY)
    Returns the item stack that should be displayed at the given layout coordinates.
    static Background
    checkerboard(GuiItem primary, GuiItem secondary)
    Creates a checkerboard background with the given primary and secondary items.
    static Background
    fill(GuiItem item)
    Creates a background that fills the background with the given item.
  • Method Details

    • backgroundAt

      org.bukkit.inventory.ItemStack backgroundAt(int layoutX, int layoutY)
      Returns the item stack that should be displayed at the given layout coordinates.
      Parameters:
      layoutX - the x coordinate of the layout
      layoutY - the y coordinate of the layout
      Returns:
      the item stack that should be displayed at the given layout coordinates
    • fill

      static Background fill(GuiItem item)
      Creates a background that fills the background with the given item.
      Parameters:
      item - the item to fill the background with
      Returns:
      the background
    • checkerboard

      static Background checkerboard(GuiItem primary, GuiItem secondary)
      Creates a checkerboard background with the given primary and secondary items.
      Parameters:
      primary - the primary item
      secondary - the secondary item
      Returns:
      the background