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 Details

    • plant

      protected final AbstractPlant plant
    • MAX_ROTATE

      protected static final float MAX_ROTATE
      See Also:
    • rotationTickCounter

      protected int rotationTickCounter
    • prevRenderYawHead

      protected float prevRenderYawHead
  • Constructor Details

    • PlantBodyRotation

      public PlantBodyRotation(AbstractPlant mob)
  • Method Details

    • clientTick

      public void clientTick()
      Overrides:
      clientTick in class net.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)