Interface Background
public interface Background
Represents a background for a node or scene.
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackbackgroundAt(int layoutX, int layoutY) Returns the item stack that should be displayed at the given layout coordinates.static Backgroundcheckerboard(GuiItem primary, GuiItem secondary) Creates a checkerboard background with the given primary and secondary items.static BackgroundCreates 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 layoutlayoutY- the y coordinate of the layout- Returns:
- the item stack that should be displayed at the given layout coordinates
-
fill
Creates a background that fills the background with the given item.- Parameters:
item- the item to fill the background with- Returns:
- the background
-
checkerboard
Creates a checkerboard background with the given primary and secondary items.- Parameters:
primary- the primary itemsecondary- the secondary item- Returns:
- the background
-