Class Slime.SlimeMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.monster.Slime.SlimeMoveControl
- All Implemented Interfaces:
Control
- Enclosing class:
Slime
-
Nested Class Summary
Nested classes/interfaces inherited from class MoveControl
MoveControl.Operation -
Field Summary
FieldsFields inherited from class MoveControl
MAX_TURN, MIN_SPEED, MIN_SPEED_SQR, mob, operation, speedModifier, strafeForwards, strafeRight, wantedX, wantedY, wantedZ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDirection(float yRot, boolean isAggressive) voidsetWantedMovement(double speedModifier) voidtick()Methods inherited from class MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWait, setWantedPosition, strafeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Control
rotateTowards
-
Field Details
-
yRot
private float yRot -
jumpDelay
private int jumpDelay -
slime
-
isAggressive
private boolean isAggressive
-
-
Constructor Details
-
SlimeMoveControl
-
-
Method Details
-
setDirection
public void setDirection(float yRot, boolean isAggressive) -
setWantedMovement
public void setWantedMovement(double speedModifier) -
tick
public void tick()- Overrides:
tickin classMoveControl
-