Class ParrotModel


public class ParrotModel extends HierarchicalModel<Parrot>
  • Field Details

  • Constructor Details

    • ParrotModel

      public ParrotModel(ModelPart pRoot)
  • Method Details

    • createBodyLayer

      public static LayerDefinition createBodyLayer()
    • root

      public ModelPart root()
      Specified by:
      root in class HierarchicalModel<Parrot>
    • setupAnim

      public void setupAnim(Parrot pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch)
      Sets this entity's model rotation angles
      Specified by:
      setupAnim in class EntityModel<Parrot>
    • prepareMobModel

      public void prepareMobModel(Parrot pEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTick)
      Overrides:
      prepareMobModel in class EntityModel<Parrot>
    • renderOnShoulder

      public void renderOnShoulder(PoseStack pPoseStack, VertexConsumer pBuffer, int pPackedLight, int pPackedOverlay, float pLimbSwing, float pLimbSwingAmount, float pNetHeadYaw, float pHeadPitch, int pTickCount)
    • setupAnim

      private void setupAnim(ParrotModel.State pState, int pTickCount, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch)
    • prepare

      private void prepare(ParrotModel.State pState)
    • getState

      private static ParrotModel.State getState(Parrot pParrot)