Class PlayerRenderingHandler
java.lang.Object
com.pixelmonmod.pixelmon.api.model.type.PlayerRenderingHandler
- All Implemented Interfaces:
RenderingHandler
Renders a player model with the given skin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.resources.ResourceLocation
static final com.mojang.serialization.Codec<PlayerRenderingHandler>
protected net.minecraft.client.model.PlayerModel<NPC>
protected final boolean
protected final TextureProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addScreenButtons
(NPC npc, net.minecraft.client.gui.Font font, net.minecraft.client.gui.layouts.GridLayout.RowHelper rowHelper) com.mojang.serialization.Codec<? extends RenderingHandler>
codec()
copy()
boolean
protected float
getFlipDegrees
(NPC npc) protected net.minecraft.client.model.PlayerModel<NPC>
protected net.minecraft.resources.ResourceLocation
int
hashCode()
boolean
isEntityUpsideDown
(net.minecraft.world.entity.LivingEntity entity) protected boolean
void
render
(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) protected void
setupRotations
(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, float bob, float yBodyRotation, float partialTicks) net.minecraft.resources.ResourceLocation
texture()
toString()
withTexture
(TextureProvider texture) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.model.RenderingHandler
tick
-
Field Details
-
CODEC
-
slim
protected final boolean slim -
texture
-
playerModel
-
cachedTexture
protected transient net.minecraft.resources.ResourceLocation cachedTexture
-
-
Constructor Details
-
PlayerRenderingHandler
- Parameters:
slim
- If to use the alex modeltexture
- The skin
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceRenderingHandler
-
codec
- Specified by:
codec
in interfaceRenderingHandler
-
texture
public net.minecraft.resources.ResourceLocation texture() -
addScreenButtons
public void addScreenButtons(NPC npc, net.minecraft.client.gui.Font font, net.minecraft.client.gui.layouts.GridLayout.RowHelper rowHelper) - Specified by:
addScreenButtons
in interfaceRenderingHandler
-
withTexture
-
render
public void render(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) - Specified by:
render
in interfaceRenderingHandler
-
setupRotations
protected void setupRotations(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, float bob, float yBodyRotation, float partialTicks) -
isEntityUpsideDown
public boolean isEntityUpsideDown(net.minecraft.world.entity.LivingEntity entity) -
isShaking
-
getFlipDegrees
-
getPlayerModel
-
getTexture
protected net.minecraft.resources.ResourceLocation getTexture() -
equals
-
hashCode
public int hashCode() -
toString
-