类 ScreenEvent.Render
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.Render
- 封闭类:
ScreenEvent
Fired when a screen is being drawn.
See the two subclasses for listening before and after drawing.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired after the screen is drawn.static class
Fired before the screen is drawn.从类继承的嵌套类/接口 net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
Render
(Screen screen, GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) -
方法概要
修饰符和类型方法说明返回 the gui graphics used for rendering。int
返回 the X coordinate of the mouse pointer。int
返回 the Y coordinate of the mouse pointer。float
返回 the partial tick。从类继承的方法 net.minecraftforge.client.event.ScreenEvent
getScreen
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
guiGraphics
-
mouseX
private final int mouseX -
mouseY
private final int mouseY -
partialTick
private final float partialTick
-
-
构造器详细资料
-
Render
@Internal protected Render(Screen screen, GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
-
-
方法详细资料
-
getGuiGraphics
返回 the gui graphics used for rendering。- 返回:
- the gui graphics used for rendering
-
getMouseX
public int getMouseX()返回 the X coordinate of the mouse pointer。- 返回:
- the X coordinate of the mouse pointer
-
getMouseY
public int getMouseY()返回 the Y coordinate of the mouse pointer。- 返回:
- the Y coordinate of the mouse pointer
-
getPartialTick
public float getPartialTick()返回 the partial tick。- 返回:
- the partial tick
-