Package xyz.gmitch215.socketmc.screen
Class Overlay
java.lang.Object
xyz.gmitch215.socketmc.screen.Overlay
- All Implemented Interfaces:
Serializable
Represents an overlay to be displayed over the screen.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOverlay(@NotNull DrawingContext context, boolean pauseScreen) Constructs a new overlay. -
Method Summary
Modifier and TypeMethodDescriptionGets the immutable drawing context of this overlay.booleanReturns whether this overlay should pause the game.voidsetPauseScreen(boolean pauseScreen) Sets whether this overlay should pause the game.
-
Constructor Details
-
Overlay
Constructs a new overlay.- Parameters:
context- The drawing context to use on the overlay.pauseScreen- Whether this overlay should pause the game.
-
-
Method Details
-
getContext
Gets the immutable drawing context of this overlay.- Returns:
- The Drawing Context.
-
isPauseScreen
public boolean isPauseScreen()Returns whether this overlay should pause the game.- Returns:
- true if the game should be paused, false otherwise.
-
setPauseScreen
public void setPauseScreen(boolean pauseScreen) Sets whether this overlay should pause the game.- Parameters:
pauseScreen- true if the game should be paused, false otherwise.
-