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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IRenderTypeBuffer
private final ItemFrameEntity
private final ItemStack
private final int
private final MatrixStack
private final ItemFrameRenderer
-
Constructor Summary
ConstructorDescriptionRenderItemInFrameEvent
(ItemFrameEntity itemFrame, ItemFrameRenderer renderItemFrame, MatrixStack matrix, IRenderTypeBuffer buffers, int light) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
item
-
entityItemFrame
-
renderer
-
matrix
-
buffers
-
light
private final int light
-
-
Constructor Details
-
RenderItemInFrameEvent
public RenderItemInFrameEvent(ItemFrameEntity itemFrame, ItemFrameRenderer renderItemFrame, MatrixStack matrix, IRenderTypeBuffer buffers, int light)
-
-
Method Details
-
getItem
-
getEntityItemFrame
-
getRenderer
-
getMatrix
-
getBuffers
-
getLight
public int getLight()
-