Class PokemonRenderingHandler

java.lang.Object
com.pixelmonmod.pixelmon.api.model.type.PokemonRenderingHandler
All Implemented Interfaces:
RenderingHandler

public final class PokemonRenderingHandler extends Object implements RenderingHandler
Renders a Pokemon
  • Field Details

  • Constructor Details

    • PokemonRenderingHandler

      public PokemonRenderingHandler(int dex, String form, Gender gender, String palette, int model)
      Parameters:
      dex - The dex number of the Pokemon
      form - The form of the Pokemon
      gender - The gender of the Pokemon
      palette - The palette of the Pokemon
  • Method Details

    • codec

      public com.mojang.serialization.Codec<? extends RenderingHandler> codec()
      Specified by:
      codec in interface RenderingHandler
    • copy

      public RenderingHandler copy()
      Specified by:
      copy in interface RenderingHandler
    • tick

      public void tick(RenderableEntity entity)
      Specified by:
      tick in interface RenderingHandler
    • addScreenButtons

      public void addScreenButtons(NPC npc, net.minecraft.client.gui.Font font, net.minecraft.client.gui.layouts.GridLayout.RowHelper rowHelper)
      Specified by:
      addScreenButtons in interface RenderingHandler
    • 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 interface RenderingHandler
    • getModel

      protected ModelData[] 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

      protected boolean isShaking(NPC npc)
    • getFlipDegrees

      protected float getFlipDegrees(NPC npc)
    • dex

      public int dex()
    • form

      public String form()
    • gender

      public Gender gender()
    • palette

      public String palette()
    • model

      public int model()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object