mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix #5768 add access to MainWindow object in RenderGameOverlayEvent
This commit is contained in:
1 parent
19059b054e
commit
656ff25ae1
1 file changed
+9
-1
@@ -33,6 +33,11 @@ public class RenderGameOverlayEvent extends Event
|
||||
{
|
||||
return partialTicks;
|
||||
}
|
||||
|
||||
public MainWindow getWindow()
|
||||
{
|
||||
return window;
|
||||
}
|
||||
|
||||
public ElementType getType()
|
||||
{
|
||||
@@ -66,17 +71,20 @@ public class RenderGameOverlayEvent extends Event
|
||||
}
|
||||
|
||||
private final float partialTicks;
|
||||
private final MainWindow window;
|
||||
private final ElementType type;
|
||||
|
||||
public RenderGameOverlayEvent(float partialTicks, MainWindow resolution)
|
||||
public RenderGameOverlayEvent(float partialTicks, MainWindow window)
|
||||
{
|
||||
this.partialTicks = partialTicks;
|
||||
this.window = window;
|
||||
this.type = null;
|
||||
}
|
||||
|
||||
private RenderGameOverlayEvent(RenderGameOverlayEvent parent, ElementType type)
|
||||
{
|
||||
this.partialTicks = parent.getPartialTicks();
|
||||
this.window = parent.getWindow();
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user