Class Rabbit.RabbitMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.animal.rabbit.Rabbit.RabbitMoveControl
- All Implemented Interfaces:
Control
- Enclosing class:
Rabbit
-
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 TypeMethodDescriptionvoidsetWantedPosition(double x, double y, double z, double speedModifier) Sets the speed and location to move tovoidtick()Methods inherited from class MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, setWait, strafeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Control
rotateTowards
-
Field Details
-
rabbit
-
nextJumpSpeed
private double nextJumpSpeed
-
-
Constructor Details
-
RabbitMoveControl
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classMoveControl
-
setWantedPosition
public void setWantedPosition(double x, double y, double z, double speedModifier) Sets the speed and location to move to- Overrides:
setWantedPositionin classMoveControl
-