Class MovementHandler
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
com.minecolonies.core.entity.pathfinding.navigation.MovementHandler
- All Implemented Interfaces:
net.minecraft.world.entity.ai.control.Control
public class MovementHandler
extends net.minecraft.world.entity.ai.control.MoveControl
Custom movement handler for minecolonies citizens (avoid jumping so much).
Note that the "speed" variable of the super is a speedFactor to our attributes base speed.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.world.entity.ai.control.MoveControl.Operation -
Field Summary
Fields 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 TypeMethodDescriptionvoidsetWantedPosition(double x, double y, double z, double speedIn) voidtick()Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl
getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, strafe
-
Constructor Details
-
MovementHandler
public MovementHandler(net.minecraft.world.entity.Mob mob)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.control.MoveControl
-
setWantedPosition
public void setWantedPosition(double x, double y, double z, double speedIn) - Overrides:
setWantedPositionin classnet.minecraft.world.entity.ai.control.MoveControl
-