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.ResourceLocationstatic final com.mojang.serialization.Codec<PlayerRenderingHandler>protected net.minecraft.client.model.PlayerModel<NPC>protected final booleanprotected final TextureProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScreenButtons(NPC npc, net.minecraft.client.gui.Font font, net.minecraft.client.gui.layouts.GridLayout.RowHelper rowHelper) com.mojang.serialization.Codec<? extends RenderingHandler>codec()copy()booleanprotected floatgetFlipDegrees(NPC npc) protected net.minecraft.client.model.PlayerModel<NPC>protected net.minecraft.resources.ResourceLocationinthashCode()booleanisEntityUpsideDown(net.minecraft.world.entity.LivingEntity entity) protected booleanvoidrender(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) protected voidsetupRotations(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, float bob, float yBodyRotation, float partialTicks) net.minecraft.resources.ResourceLocationtexture()toString()withTexture(TextureProvider texture) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
copyin interfaceRenderingHandler
-
codec
- Specified by:
codecin 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:
addScreenButtonsin 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:
renderin 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
-