Class PlantBodyRotation
java.lang.Object
net.minecraft.world.entity.ai.control.BodyRotationControl
nokunami.floral_warfare.common.entity.ai.control.PlantBodyRotation
- All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control
- Direct Known Subclasses:
PlantPartBodyRotation,ThreepeaterHead.ThreepeaterHeadBodyRotation
public class PlantBodyRotation
extends net.minecraft.world.entity.ai.control.BodyRotationControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final floatprotected final AbstractPlantprotected floatprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatapproach(float target, float current, float limit) floatapproachDelta(float target, float current, float limit) voidprotected booleanhasMoved()protected booleanprotected voidprotected void
-
Field Details
-
plant
-
MAX_ROTATE
protected static final float MAX_ROTATE- See Also:
-
rotationTickCounter
protected int rotationTickCounter -
prevRenderYawHead
protected float prevRenderYawHead
-
-
Constructor Details
-
PlantBodyRotation
-
-
Method Details
-
clientTick
public void clientTick()- Overrides:
clientTickin classnet.minecraft.world.entity.ai.control.BodyRotationControl
-
rotateBodyIfNecessary
protected void rotateBodyIfNecessary() -
rotateHeadIfNecessary
protected void rotateHeadIfNecessary() -
noMobPassengers
protected boolean noMobPassengers() -
hasMoved
protected boolean hasMoved() -
approach
public float approach(float target, float current, float limit) -
approachDelta
public float approachDelta(float target, float current, float limit)
-