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
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
getHead()
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
-
Field Details
-
HEIGHT_MOD
public static final float HEIGHT_MODSpirits will be rendered at this amount of scale on the Y axis.- See Also:
-
WIDTH_MOD
public static final float WIDTH_MODSpirits 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 classnet.minecraft.client.model.Model
-
getHead
public net.minecraft.client.model.geom.ModelPart getHead()- Specified by:
getHead
in interfacenet.minecraft.client.model.HeadedModel
-
translateToHand
public void translateToHand(net.minecraft.world.entity.HumanoidArm handSide, com.mojang.blaze3d.vertex.PoseStack transformationMatrix) - Specified by:
translateToHand
in interfacenet.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)
-