Class ItemFrameRenderer<T extends ItemFrame>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
net.minecraft.client.renderer.entity.ItemFrameRenderer<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockRenderDispatcherstatic final intprivate static final ModelResourceLocationstatic final intprivate static final ModelResourceLocationprivate static final ModelResourceLocationprivate final ItemRendererprivate static final ModelResourceLocationFields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, LEASH_RENDER_STEPS, NAMETAG_SCALE, shadowRadius, shadowStrength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetBlockLightLevel(T pEntity, BlockPos pPos) private ModelResourceLocationgetFrameModelResourceLoc(T pEntity, ItemStack pItem) private intgetLightVal(T pItemFrame, int pGlowLightVal, int pRegularLightVal) getRenderOffset(T pEntity, float pPartialTicks) getTextureLocation(T pEntity) Returns the location of an entity's texture.voidrender(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) protected voidrenderNameTag(T pEntity, Component pDisplayName, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, float pPartialTick) protected booleanshouldShowName(T pEntity) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getFont, getPackedLightCoords, getShadowRadius, getSkyLightLevel, shouldRender
-
Field Details
-
FRAME_LOCATION
-
MAP_FRAME_LOCATION
-
GLOW_FRAME_LOCATION
-
GLOW_MAP_FRAME_LOCATION
-
GLOW_FRAME_BRIGHTNESS
public static final int GLOW_FRAME_BRIGHTNESS- See Also:
-
BRIGHT_MAP_LIGHT_ADJUSTMENT
public static final int BRIGHT_MAP_LIGHT_ADJUSTMENT- See Also:
-
itemRenderer
-
blockRenderer
-
-
Constructor Details
-
ItemFrameRenderer
-
-
Method Details
-
getBlockLightLevel
- Overrides:
getBlockLightLevelin classEntityRenderer<T extends ItemFrame>
-
render
public void render(T pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) - Overrides:
renderin classEntityRenderer<T extends ItemFrame>
-
getLightVal
-
getFrameModelResourceLoc
-
getRenderOffset
- Overrides:
getRenderOffsetin classEntityRenderer<T extends ItemFrame>
-
getTextureLocation
Returns the location of an entity's texture.- Specified by:
getTextureLocationin classEntityRenderer<T extends ItemFrame>
-
shouldShowName
- Overrides:
shouldShowNamein classEntityRenderer<T extends ItemFrame>
-
renderNameTag
protected void renderNameTag(T pEntity, Component pDisplayName, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, float pPartialTick) - Overrides:
renderNameTagin classEntityRenderer<T extends ItemFrame>
-