Package net.minecraftforge.client.event
Class RenderItemInFrameEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.RenderItemInFrameEvent
-
public class RenderItemInFrameEvent extends net.minecraftforge.eventbus.api.Event
This event is called when an item is rendered in an item frame. You can set canceled to do no further vanilla processing.
-
-
Field Summary
Fields Modifier and Type Field Description private IRenderTypeBuffer
buffers
private ItemFrameEntity
entityItemFrame
private ItemStack
item
private int
light
private MatrixStack
matrix
private ItemFrameRenderer
renderer
-
Constructor Summary
Constructors Constructor Description RenderItemInFrameEvent(ItemFrameEntity itemFrame, ItemFrameRenderer renderItemFrame, MatrixStack matrix, IRenderTypeBuffer buffers, int light)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRenderTypeBuffer
getBuffers()
ItemFrameEntity
getEntityItemFrame()
ItemStack
getItem()
int
getLight()
MatrixStack
getMatrix()
ItemFrameRenderer
getRenderer()
-
-
-
Field Detail
-
item
private final ItemStack item
-
entityItemFrame
private final ItemFrameEntity entityItemFrame
-
renderer
private final ItemFrameRenderer renderer
-
matrix
private final MatrixStack matrix
-
buffers
private final IRenderTypeBuffer buffers
-
light
private final int light
-
-
Constructor Detail
-
RenderItemInFrameEvent
public RenderItemInFrameEvent(ItemFrameEntity itemFrame, ItemFrameRenderer renderItemFrame, MatrixStack matrix, IRenderTypeBuffer buffers, int light)
-
-
Method Detail
-
getItem
@Nonnull public ItemStack getItem()
-
getEntityItemFrame
public ItemFrameEntity getEntityItemFrame()
-
getRenderer
public ItemFrameRenderer getRenderer()
-
getMatrix
public MatrixStack getMatrix()
-
getBuffers
public IRenderTypeBuffer getBuffers()
-
getLight
public int getLight()
-
-