Class SpiritModel

java.lang.Object
net.minecraft.client.model.Model
etithespirit.orimod.client.render.SpiritModel
All Implemented Interfaces:
net.minecraft.client.model.ArmedModel, net.minecraft.client.model.HeadedModel

public class SpiritModel extends net.minecraft.client.model.Model implements net.minecraft.client.model.ArmedModel, net.minecraft.client.model.HeadedModel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    Spirits will be rendered at this amount of scale on the Y axis.
    static final float
    Spirits will be rendered at this amount of scale on the width / depth axes.

    Fields inherited from class net.minecraft.client.model.Model

    renderType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SpiritModel(net.minecraft.client.model.geom.ModelPart root)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.client.model.geom.builders.LayerDefinition
     
    protected net.minecraft.client.model.geom.ModelPart
    getArm(net.minecraft.world.entity.HumanoidArm handSide)
     
    protected net.minecraft.world.entity.HumanoidArm
    getAttackArm(net.minecraft.world.entity.LivingEntity spirit)
     
    net.minecraft.client.model.geom.ModelPart
     
    void
    renderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrixStackIn, com.mojang.blaze3d.vertex.VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha)
     
    void
    setRotationAngles(net.minecraft.world.entity.LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYawRads, float headPitchRads, net.minecraft.client.model.PlayerModel<net.minecraft.client.player.AbstractClientPlayer> model)
     
    void
    translateToHand(net.minecraft.world.entity.HumanoidArm handSide, com.mojang.blaze3d.vertex.PoseStack transformationMatrix)
     

    Methods inherited from class net.minecraft.client.model.Model

    renderType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • HEIGHT_MOD

      public static final float HEIGHT_MOD
      Spirits will be rendered at this amount of scale on the Y axis.
      See Also:
    • WIDTH_MOD

      public static final float WIDTH_MOD
      Spirits will be rendered at this amount of scale on the width / depth axes.
      See Also:
  • Constructor Details

    • SpiritModel

      public SpiritModel()
    • SpiritModel

      public SpiritModel(net.minecraft.client.model.geom.ModelPart root)
  • Method Details

    • createBodyLayer

      public static net.minecraft.client.model.geom.builders.LayerDefinition createBodyLayer()
    • setRotationAngles

      public void setRotationAngles(@Nonnull net.minecraft.world.entity.LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYawRads, float headPitchRads, @Nullable net.minecraft.client.model.PlayerModel<net.minecraft.client.player.AbstractClientPlayer> model)
    • renderToBuffer

      public void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack matrixStackIn, com.mojang.blaze3d.vertex.VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha)
      Specified by:
      renderToBuffer in class net.minecraft.client.model.Model
    • getHead

      public net.minecraft.client.model.geom.ModelPart getHead()
      Specified by:
      getHead in interface net.minecraft.client.model.HeadedModel
    • translateToHand

      public void translateToHand(net.minecraft.world.entity.HumanoidArm handSide, com.mojang.blaze3d.vertex.PoseStack transformationMatrix)
      Specified by:
      translateToHand in interface net.minecraft.client.model.ArmedModel
    • getArm

      protected net.minecraft.client.model.geom.ModelPart getArm(net.minecraft.world.entity.HumanoidArm handSide)
    • getAttackArm

      protected net.minecraft.world.entity.HumanoidArm getAttackArm(net.minecraft.world.entity.LivingEntity spirit)