Package net.minecraftforge.client.event
Class 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.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe type of the block overlay to be rendered.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockPosprivate final BlockStateprivate final RenderBlockScreenEffectEvent.OverlayTypeprivate final Playerprivate final PoseStack
- 
Constructor SummaryConstructorsConstructorDescriptionRenderBlockScreenEffectEvent(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the position of the block which the overlay is gotten from.Returns the block which the overlay is gotten from.Returns the type of the overlay.Returns the player which the overlay will apply to.Returns the pose stack used for rendering.Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
player
- 
poseStack
- 
overlayType
- 
blockState
- 
blockPos
 
- 
- 
Constructor Details- 
RenderBlockScreenEffectEvent@Internal public RenderBlockScreenEffectEvent(Player player, PoseStack poseStack, RenderBlockScreenEffectEvent.OverlayType type, BlockState block, BlockPos blockPos) 
 
- 
- 
Method Details- 
getPlayerReturns the player which the overlay will apply to.- Returns:
- the player which the overlay will apply to
 
- 
getPoseStackReturns the pose stack used for rendering.- Returns:
- the pose stack used for rendering
 
- 
getOverlayTypeReturns the type of the overlay.- Returns:
- the type of the overlay
 
- 
getBlockStateReturns the block which the overlay is gotten from.- Returns:
- the block which the overlay is gotten from
 
- 
getBlockPosReturns the position of the block which the overlay is gotten from.- Returns:
- the position of the block which the overlay is gotten from
 
 
-