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

public class PlantPartBodyRotation extends PlantBodyRotation
  • Constructor Details

    • PlantPartBodyRotation

      public PlantPartBodyRotation(PlantPartEntity mob)
  • Method Details

    • getParent

      public net.minecraft.world.entity.Entity getParent()
    • clientTick

      public void clientTick()
      Overrides:
      clientTick in class PlantBodyRotation
    • rotateBodyIfNecessary

      protected void rotateBodyIfNecessary()
      Overrides:
      rotateBodyIfNecessary in class PlantBodyRotation
    • rotateHeadIfNecessary

      protected void rotateHeadIfNecessary()
      Overrides:
      rotateHeadIfNecessary in class PlantBodyRotation
    • rotateIfNecessary

      public float rotateIfNecessary(float rotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif)