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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic floatrotateIfNecessary(float pRotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif) voidtick()Methods inherited from class net.minecraft.world.entity.ai.control.LookControl
getWantedX, getWantedY, getWantedZ, getXRotD, getYRotD, isLookingAtTarget, resetXRotOnTick, rotateTowards, setLookAt, setLookAt, setLookAt, setLookAt, setLookAt
-
Constructor Details
-
ThreepeaterHeadLookControl
public ThreepeaterHeadLookControl(net.minecraft.world.entity.Mob pMob)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.control.LookControl
-
clampHeadRotationToBody
protected void clampHeadRotationToBody()- Overrides:
clampHeadRotationToBodyin classnet.minecraft.world.entity.ai.control.LookControl
-
rotateIfNecessary
public static float rotateIfNecessary(float pRotationToAdjust, float pActualRotation, float positiveMaxDif, float negativeMaxDif)
-