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 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()
int
dex()
boolean
form()
gender()
protected float
getFlipDegrees
(NPC npc) protected ModelData[]
getModel()
int
hashCode()
boolean
isEntityUpsideDown
(net.minecraft.world.entity.LivingEntity entity) protected boolean
int
model()
palette()
void
render
(NPC npc, float yaw, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight) double
scale()
protected void
setupRotations
(NPC npc, com.mojang.blaze3d.vertex.PoseStack poseStack, float bob, float yBodyRotation, float partialTicks) void
tick
(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:
codec
in interfaceRenderingHandler
-
copy
- Specified by:
copy
in interfaceRenderingHandler
-
tick
- Specified by:
tick
in interfaceRenderingHandler
-
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
-
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
-
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
-