Class LookHandler

java.lang.Object
net.minecraft.world.entity.ai.control.LookControl
com.minecolonies.api.util.LookHandler
All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control

public class LookHandler 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
    LookHandler(net.minecraft.world.entity.Mob entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setLookAt(net.minecraft.world.entity.Entity entity)
     
    void
    setLookAt(net.minecraft.world.entity.Entity entity, float turnY, float turnX)
     
    void
    setLookAtCooldown(int cooldown)
     
    void
     

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

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

    Methods inherited from class java.lang.Object

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

    • LookHandler

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

    • tick

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

      public void setLookAtCooldown(int cooldown)
    • setLookAt

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

      public void setLookAt(net.minecraft.world.entity.Entity entity, float turnY, float turnX)
      Overrides:
      setLookAt in class net.minecraft.world.entity.ai.control.LookControl