Package net.minecraft.client.model
Class CamelModel<T extends Camel>
java.lang.Object
net.minecraft.client.model.Model
net.minecraft.client.model.EntityModel<T>
net.minecraft.client.model.HierarchicalModel<T>
net.minecraft.client.model.CamelModel<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final float
private static final String
private final ModelPart
private static final float
private static final String
private final ModelPart[]
private final ModelPart
private static final String
private final ModelPart[]
private static final float
Fields inherited from class net.minecraft.client.model.EntityModel
attackTime, riding, young
Fields inherited from class net.minecraft.client.model.Model
renderType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyHeadRotation
(T pEntity, float pNetHeadYaw, float pHeadPitch, float pAgeInTicks) static LayerDefinition
void
renderToBuffer
(PoseStack pPoseStack, VertexConsumer pBuffer, int pPackedLight, int pPackedOverlay, int pColor) root()
void
setupAnim
(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) Sets this entity's model rotation anglesprivate void
toggleInvisibleParts
(T pEntity) Methods inherited from class net.minecraft.client.model.HierarchicalModel
animate, animate, animate, animate, animateWalk, animateWalk, applyStatic, applyStatic, getAnimation, getAnyDescendantWithName
Methods inherited from class net.minecraft.client.model.EntityModel
copyPropertiesTo, prepareMobModel
Methods inherited from class net.minecraft.client.model.Model
renderToBuffer, renderType
-
Field Details
-
MAX_WALK_ANIMATION_SPEED
private static final float MAX_WALK_ANIMATION_SPEED- See Also:
-
WALK_ANIMATION_SCALE_FACTOR
private static final float WALK_ANIMATION_SCALE_FACTOR- See Also:
-
BABY_SCALE
private static final float BABY_SCALE- See Also:
-
BABY_Y_OFFSET
private static final float BABY_Y_OFFSET- See Also:
-
SADDLE
- See Also:
-
BRIDLE
- See Also:
-
REINS
- See Also:
-
root
-
head
-
saddleParts
-
ridingParts
-
-
Constructor Details
-
CamelModel
-
-
Method Details
-
createBodyLayer
-
setupAnim
public void setupAnim(T pEntity, float pLimbSwing, float pLimbSwingAmount, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) Sets this entity's model rotation angles- Specified by:
setupAnim
in classEntityModel<T extends Camel>
-
applyHeadRotation
-
toggleInvisibleParts
-
renderToBuffer
public void renderToBuffer(PoseStack pPoseStack, VertexConsumer pBuffer, int pPackedLight, int pPackedOverlay, int pColor) - Overrides:
renderToBuffer
in classHierarchicalModel<T extends Camel>
-
root
- Specified by:
root
in classHierarchicalModel<T extends Camel>
-