Interface AdvancementRenderContext.Background
- All Superinterfaces:
AdvancementRenderContext
- Enclosing interface:
AdvancementRenderContext
@NonExtendable
public static non-sealed interface AdvancementRenderContext.Background
extends AdvancementRenderContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface AdvancementRenderContext
AdvancementRenderContext.Background, AdvancementRenderContext.Frame, AdvancementRenderContext.Icon -
Method Summary
Methods inherited from interface AdvancementRenderContext
advancement, display, graphics, holder, isObtained, progress
-
Method Details
-
bounds
net.minecraft.client.gui.navigation.ScreenRectangle bounds()- Returns:
- the
ScreenRectanglethat the background is contained within. - API Note:
- use
ScreenRectangle.left()andScreenRectangle.top()for the starting coordinates of the background.
-
scrollX
double scrollX()- Returns:
- the background's x scroll offset.
-
scrollY
double scrollY()- Returns:
- the background's y scroll offset.
-