Class RenderPlayerAsSpirit
java.lang.Object
etithespirit.orimod.client.render.RenderPlayerAsSpirit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation
The texture for a spirit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
renderThirdPersonItems
(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource renBuf, int combinedLightIn, net.minecraft.world.entity.LivingEntity entity) Renders the items being held by this characterstatic void
whenRenderingPlayer
(net.minecraftforge.client.event.RenderPlayerEvent.Pre preRenderEvent) (Manually Subscribed) Occurs when the player is about to be rendered.
-
Field Details
-
SPIRIT_TEXTURE
public static final net.minecraft.resources.ResourceLocation SPIRIT_TEXTUREThe texture for a spirit.
-
-
Constructor Details
-
RenderPlayerAsSpirit
public RenderPlayerAsSpirit()
-
-
Method Details
-
whenRenderingPlayer
public static void whenRenderingPlayer(net.minecraftforge.client.event.RenderPlayerEvent.Pre preRenderEvent) (Manually Subscribed) Occurs when the player is about to be rendered. This is used to override the rendered model to a spirit if needed.- Parameters:
preRenderEvent
- The render event containing meaningful information about the player renderer.
-
renderThirdPersonItems
public static void renderThirdPersonItems(com.mojang.blaze3d.vertex.PoseStack matrix, net.minecraft.client.renderer.MultiBufferSource renBuf, int combinedLightIn, net.minecraft.world.entity.LivingEntity entity) Renders the items being held by this character- Parameters:
matrix
- The current matrix stackrenBuf
- A source of render buffers, used by the renderArmWithItem method.combinedLightIn
- The combined light on the item.entity
- The entity to render for.
-