类 RenderItemInFrameEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderItemInFrameEvent

public class RenderItemInFrameEvent extends net.minecraftforge.eventbus.api.Event
Fired before an item stack is rendered in an item frame. This can be used to prevent normal rendering or add custom rendering.

This event is cancellable, and does not have a result. If the event is cancelled, then the item stack will not be rendered

This event is fired on the main Forge event bus, only on the logical client.

另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getItemFrameState

      public ItemFrameRenderState getItemFrameState()
      返回 the item frame entity。
      返回:
      the item frame entity
    • getRenderer

      public ItemFrameRenderer<?> getRenderer()
      返回 the renderer for the item frame entity。
      返回:
      the renderer for the item frame entity
    • getPoseStack

      public PoseStack getPoseStack()
      返回 the pose stack used for rendering。
      返回:
      the pose stack used for rendering
    • getMultiBufferSource

      public MultiBufferSource getMultiBufferSource()
      返回 the source of rendering buffers。
      返回:
      the source of rendering buffers
    • getPackedLight

      public int getPackedLight()
      返回 the amount of packed (sky and block) light for rendering。
      返回:
      the amount of packed (sky and block) light for rendering
      另请参阅: