@ApiStatus.Internal public class BaseBoundsHandlerImpl extends java.lang.Object implements BaseBoundsHandler
| Constructor and Description |
|---|
BaseBoundsHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<me.shedaniel.math.Rectangle> |
getExclusionZones(java.lang.Class<?> currentScreenClass,
boolean sort) |
float |
getPriority()
Gets the priority of the handler, the higher it is, the earlier it is called.
|
boolean |
isHandingScreen(java.lang.Class<?> screen) |
net.minecraft.util.ActionResultType |
isInZone(double mouseX,
double mouseY)
Checks if mouse is inside the overlay
|
void |
registerExclusionZones(java.lang.Class<?> screenClass,
java.util.function.Supplier<java.util.List<me.shedaniel.math.Rectangle>> supplier)
Register an exclusion zone
|
boolean |
shouldRecalculateArea(DisplayPanelLocation location,
me.shedaniel.math.Rectangle rectangle)
Checks if REI should recalculate the overlay bounds
|
int |
supplierSize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExclusionZones, getInstanceshouldScreenBeOverlayedpublic boolean isHandingScreen(java.lang.Class<?> screen)
isHandingScreen in interface OverlayDeciderpublic float getPriority()
OverlayDecidergetPriority in interface OverlayDeciderpublic net.minecraft.util.ActionResultType isInZone(double mouseX,
double mouseY)
OverlayDeciderisInZone in interface OverlayDecidermouseX - mouse's x coordinatesmouseY - mouse's y coordinatespublic boolean shouldRecalculateArea(DisplayPanelLocation location, me.shedaniel.math.Rectangle rectangle)
OverlayDecidershouldRecalculateArea in interface OverlayDeciderlocation - the location of the display panelrectangle - the current overlay boundspublic java.util.List<me.shedaniel.math.Rectangle> getExclusionZones(java.lang.Class<?> currentScreenClass,
boolean sort)
getExclusionZones in interface BaseBoundsHandlerpublic int supplierSize()
supplierSize in interface BaseBoundsHandlerpublic void registerExclusionZones(java.lang.Class<?> screenClass,
java.util.function.Supplier<java.util.List<me.shedaniel.math.Rectangle>> supplier)
BaseBoundsHandlerregisterExclusionZones in interface BaseBoundsHandlerscreenClass - the screensupplier - the exclusion zone supplier, returns the list of exclusion zones