类 RenderBlockScreenEffectEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderBlockScreenEffectEvent
public class RenderBlockScreenEffectEvent
extends net.minecraftforge.eventbus.api.Event
Fired before a block texture will be overlaid on the player's view.
This event is cancellable, and does not have a result. If this event is cancelled, then the overlay will not be rendered.
This event is fired on the main Forge event bus, only on the logical client.
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
The type of the block overlay to be rendered.从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final BlockPos
private final BlockState
private final RenderBlockScreenEffectEvent.OverlayType
private final Player
private final PoseStack
-
构造器概要
构造器构造器说明RenderBlockScreenEffectEvent
(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) -
方法概要
修饰符和类型方法说明返回 the position of the block which the overlay is gotten from。返回 the block which the overlay is gotten from。返回 the type of the overlay。返回 the player which the overlay will apply to。返回 the pose stack used for rendering。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
player
-
poseStack
-
overlayType
-
blockState
-
blockPos
-
-
构造器详细资料
-
RenderBlockScreenEffectEvent
@Internal public RenderBlockScreenEffectEvent(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos)
-
-
方法详细资料
-
getPlayer
返回 the player which the overlay will apply to。- 返回:
- the player which the overlay will apply to
-
getPoseStack
返回 the pose stack used for rendering。- 返回:
- the pose stack used for rendering
-
getOverlayType
返回 the type of the overlay。- 返回:
- the type of the overlay
-
getBlockState
返回 the block which the overlay is gotten from。- 返回:
- the block which the overlay is gotten from
-
getBlockPos
返回 the position of the block which the overlay is gotten from。- 返回:
- the position of the block which the overlay is gotten from
-