Interface Background
public interface Background
Represents a background for a node or scene.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbackgroundAt(int layoutX, int layoutY) Returns the item stack that should be displayed at the given layout coordinates.static Backgroundcheckerboard(Pixel primary, Pixel secondary) Creates a checkerboard background with the given primary and secondary pixels.static BackgroundCreates a background that fills the background with the given pixel.
-
Method Details
-
backgroundAt
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
- Since:
- 2.0.0
-
fill
Creates a background that fills the background with the given pixel.- Parameters:
pixel- the item to fill the background with- Returns:
- the background
- Since:
- 2.0.0
-
checkerboard
Creates a checkerboard background with the given primary and secondary pixels.- Parameters:
primary- the primary itemsecondary- the secondary item- Returns:
- the background
- Since:
- 2.0.0
-