Class RhinoModel<T extends net.minecraft.world.entity.Entity>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<E>
net.minecraft.client.model.HierarchicalModel<T>
net.minheur.mhm_bitsnbobs.entity.client.RhinoModel<T>
public class RhinoModel<T extends net.minecraft.world.entity.Entity>
extends net.minecraft.client.model.HierarchicalModel<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.client.model.geom.ModelPartprivate final net.minecraft.client.model.geom.ModelPartFields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, youngFields inherited from class net.minecraft.client.model.Model
renderType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyHeadRotation(float pNetHeadYaw, float pHeadPitch, float pAgeInTicks) static net.minecraft.client.model.geom.builders.LayerDefinitionvoidrenderToBuffer(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) net.minecraft.client.model.geom.ModelPartroot()voidsetupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) Methods inherited from class net.minecraft.client.model.HierarchicalModel
animate, animate, animateWalk, applyStatic, getAnyDescendantWithNameMethods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo, prepareMobModelMethods inherited from class net.minecraft.client.model.Model
renderType
-
Field Details
-
rhino
private final net.minecraft.client.model.geom.ModelPart rhino -
head
private final net.minecraft.client.model.geom.ModelPart head
-
-
Constructor Details
-
RhinoModel
public RhinoModel(net.minecraft.client.model.geom.ModelPart root)
-
-
Method Details
-
createBodyLayer
public static net.minecraft.client.model.geom.builders.LayerDefinition createBodyLayer() -
setupAnim
public void setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) - Specified by:
setupAnimin classnet.minecraft.client.model.EntityModel<T extends net.minecraft.world.entity.Entity>
-
applyHeadRotation
private void applyHeadRotation(float pNetHeadYaw, float pHeadPitch, float pAgeInTicks) -
renderToBuffer
public void renderToBuffer(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) - Overrides:
renderToBufferin classnet.minecraft.client.model.HierarchicalModel<T extends net.minecraft.world.entity.Entity>
-
root
public net.minecraft.client.model.geom.ModelPart root()- Specified by:
rootin classnet.minecraft.client.model.HierarchicalModel<T extends net.minecraft.world.entity.Entity>
-