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 MultiBufferSource
private ItemFrame
private ItemStack
private int
private PoseStack
private ItemFrameRenderer
-
Constructor Summary
ConstructorDescriptionRenderItemInFrameEvent(ItemFrame itemFrame, ItemFrameRenderer renderItemFrame, PoseStack matrix, MultiBufferSource 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(ItemFrame itemFrame, ItemFrameRenderer renderItemFrame, PoseStack matrix, MultiBufferSource buffers, int light)
-
-
Method Details
-
getItem
-
getEntityItemFrame
-
getRenderer
-
getMatrix
-
getBuffers
-
getLight
public int getLight()
-