Package com.minecolonies.api.util
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetLookAt(net.minecraft.world.entity.Entity entity) voidsetLookAt(net.minecraft.world.entity.Entity entity, float turnY, float turnX) voidsetLookAtCooldown(int cooldown) voidtick()Methods inherited from class net.minecraft.world.entity.ai.control.LookControl
clampHeadRotationToBody, getWantedX, getWantedY, getWantedZ, getXRotD, getYRotD, isLookingAtTarget, resetXRotOnTick, rotateTowards, setLookAt, setLookAt, setLookAt
-
Constructor Details
-
LookHandler
public LookHandler(net.minecraft.world.entity.Mob entity)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.control.LookControl
-
setLookAtCooldown
public void setLookAtCooldown(int cooldown) -
setLookAt
public void setLookAt(net.minecraft.world.entity.Entity entity) - Overrides:
setLookAtin classnet.minecraft.world.entity.ai.control.LookControl
-
setLookAt
public void setLookAt(net.minecraft.world.entity.Entity entity, float turnY, float turnX) - Overrides:
setLookAtin classnet.minecraft.world.entity.ai.control.LookControl
-