Class ThreepeaterHead.ThreepeaterHeadLookControl

java.lang.Object
net.minecraft.world.entity.ai.control.LookControl
nokunami.floral_warfare.common.entity.plants.basic.appease.ThreepeaterHead.ThreepeaterHeadLookControl
All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control
Enclosing class:
ThreepeaterHead

public static class ThreepeaterHead.ThreepeaterHeadLookControl extends net.minecraft.world.entity.ai.control.LookControl
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.control.LookControl

    lookAtCooldown, mob, wantedX, wantedY, wantedZ, xMaxRotAngle, yMaxRotSpeed
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThreepeaterHeadLookControl(net.minecraft.world.entity.Mob pMob)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    static float
    rotateIfNecessary(float pRotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif)
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.control.LookControl

    getWantedX, getWantedY, getWantedZ, getXRotD, getYRotD, isLookingAtTarget, resetXRotOnTick, rotateTowards, setLookAt, setLookAt, setLookAt, setLookAt, setLookAt

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ThreepeaterHeadLookControl

      public ThreepeaterHeadLookControl(net.minecraft.world.entity.Mob pMob)
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.control.LookControl
    • clampHeadRotationToBody

      protected void clampHeadRotationToBody()
      Overrides:
      clampHeadRotationToBody in class net.minecraft.world.entity.ai.control.LookControl
    • rotateIfNecessary

      public static float rotateIfNecessary(float pRotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif)