Class PokemonRenderingHandler
java.lang.Object
com.pixelmonmod.pixelmon.api.model.type.PokemonRenderingHandler
- All Implemented Interfaces:
RenderingHandler
Renders a Pokemon
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PokemonRenderingHandler> -
Constructor Summary
ConstructorsConstructorDescriptionPokemonRenderingHandler(int dex, String form, Gender gender, String palette, int model, double scale, AnimationType animationType) -
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()intdex()booleanform()gender()protected floatgetFlipDegrees(NPC npc) protected ModelData[]getModel()inthashCode()booleanisEntityUpsideDown(net.minecraft.world.entity.LivingEntity entity) protected booleanintmodel()palette()voidrender(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) doublescale()protected voidsetupRotations(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, float bob, float yBodyRotation, float partialTicks) voidtick(RenderableEntity entity) toString()
-
Field Details
-
CODEC
-
-
Constructor Details
-
PokemonRenderingHandler
public PokemonRenderingHandler(int dex, String form, Gender gender, String palette, int model, double scale, AnimationType animationType) - Parameters:
dex- The dex number of the Pokemonform- The form of the Pokemongender- The gender of the Pokemonpalette- The palette of the Pokemon
-
-
Method Details
-
codec
- Specified by:
codecin interfaceRenderingHandler
-
copy
- Specified by:
copyin interfaceRenderingHandler
-
tick
- Specified by:
tickin interfaceRenderingHandler
-
addScreenButtons
public void addScreenButtons(NPC npc, net.minecraft.client.gui.Font font, net.minecraft.client.gui.layouts.GridLayout.RowHelper rowHelper) - Specified by:
addScreenButtonsin interfaceRenderingHandler
-
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
-
getModel
-
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
-
dex
public int dex() -
form
-
gender
-
palette
-
model
public int model() -
scale
public double scale() -
animationType
-
equals
-
hashCode
public int hashCode() -
toString
-