类 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.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getPlayer

      public Player getPlayer()
      返回 the player which the overlay will apply to。
      返回:
      the player which the overlay will apply to
    • getPoseStack

      public PoseStack 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

      public BlockState getBlockState()
      返回 the block which the overlay is gotten from。
      返回:
      the block which the overlay is gotten from
    • getBlockPos

      public BlockPos getBlockPos()
      返回 the position of the block which the overlay is gotten from。
      返回:
      the position of the block which the overlay is gotten from