类 ViewportEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
- 直接已知子类:
ViewportEvent.ComputeCameraAngles
,ViewportEvent.ComputeFogColor
,ViewportEvent.ComputeFov
,ViewportEvent.RenderFog
public abstract class ViewportEvent
extends net.minecraftforge.eventbus.api.Event
Fired for hooking into the entity view rendering in
GameRenderer
.
These can be used for customizing the visual features visible to the player.
See the various subclasses for listening to different features.
These events are fired on the main Forge event bus, only on the logical client.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired to allow altering the angles of the player's camera.static class
Fired for customizing the color of the fog visible to the player.static class
Fired for altering the raw field of view (FOV).static class
Fired for rendering custom fog.从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明返回 the camera information。double
返回 the partial tick。返回 the game renderer。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
renderer
-
camera
-
partialTick
private final double partialTick
-
-
构造器详细资料
-
ViewportEvent
-
-
方法详细资料
-
getRenderer
返回 the game renderer。- 返回:
- the game renderer
-
getCamera
返回 the camera information。- 返回:
- the camera information
-
getPartialTick
public double getPartialTick()返回 the partial tick。- 返回:
- the partial tick
-