Class Rabbit.RabbitMoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.animal.Rabbit.RabbitMoveControl
- All Implemented Interfaces:
Control
- Enclosing class:
Rabbit
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.control.MoveControl
MoveControl.Operation
-
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.control.MoveControl
MAX_TURN, MIN_SPEED, MIN_SPEED_SQR, mob, operation, speedModifier, strafeForwards, strafeRight, wantedX, wantedY, wantedZ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setWantedPosition
(double pX, double pY, double pZ, double pSpeed) Sets the speed and location to move tovoid
tick()
Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, strafe
-
Field Details
-
rabbit
-
nextJumpSpeed
private double nextJumpSpeed
-
-
Constructor Details
-
RabbitMoveControl
-
-
Method Details
-
tick
public void tick()- Overrides:
tick
in classMoveControl
-
setWantedPosition
public void setWantedPosition(double pX, double pY, double pZ, double pSpeed) Sets the speed and location to move to- Overrides:
setWantedPosition
in classMoveControl
-