Class PlantPartBodyRotation
java.lang.Object
net.minecraft.world.entity.ai.control.BodyRotationControl
nokunami.floral_warfare.common.entity.ai.control.PlantBodyRotation
nokunami.floral_warfare.common.entity.ai.control.PlantPartBodyRotation
- All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control
-
Field Summary
Fields inherited from class nokunami.floral_warfare.common.entity.ai.control.PlantBodyRotation
MAX_ROTATE, plant, prevRenderYawHead, rotationTickCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnet.minecraft.world.entity.Entityprotected voidprotected voidfloatrotateIfNecessary(float rotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif) Methods inherited from class nokunami.floral_warfare.common.entity.ai.control.PlantBodyRotation
approach, approachDelta, hasMoved, noMobPassengers
-
Constructor Details
-
PlantPartBodyRotation
-
-
Method Details
-
getParent
public net.minecraft.world.entity.Entity getParent() -
clientTick
public void clientTick()- Overrides:
clientTickin classPlantBodyRotation
-
rotateBodyIfNecessary
protected void rotateBodyIfNecessary()- Overrides:
rotateBodyIfNecessaryin classPlantBodyRotation
-
rotateHeadIfNecessary
protected void rotateHeadIfNecessary()- Overrides:
rotateHeadIfNecessaryin classPlantBodyRotation
-
rotateIfNecessary
public float rotateIfNecessary(float rotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif)
-