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 ItemFrame
private final ItemStack
private final MultiBufferSource
private final int
private final PoseStack
private final ItemFrameRenderer
-
Constructor Summary
ConstructorDescriptionRenderItemInFrameEvent
(ItemFrame itemFrame, ItemFrameRenderer renderItemFrame, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
itemStack
-
itemFrameEntity
-
renderer
-
poseStack
-
multiBufferSource
-
packedLight
private final int packedLight
-
-
Constructor Details
-
RenderItemInFrameEvent
public RenderItemInFrameEvent(ItemFrame itemFrame, ItemFrameRenderer renderItemFrame, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
-
-
Method Details
-
getItemStack
-
getItemFrameEntity
-
getRenderer
-
getPoseStack
-
getMultiBufferSource
-
getPackedLight
public int getPackedLight()
-