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
    Constructor
    Description
    MovementHandler(net.minecraft.world.entity.Mob mob)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setWantedPosition(double x, double y, double z, double speedIn)
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.control.MoveControl

    getSpeedModifier, getWantedX, getWantedY, getWantedZ, hasWanted, rotlerp, strafe

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MovementHandler

      public MovementHandler(net.minecraft.world.entity.Mob mob)
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.control.MoveControl
    • setWantedPosition

      public void setWantedPosition(double x, double y, double z, double speedIn)
      Overrides:
      setWantedPosition in class net.minecraft.world.entity.ai.control.MoveControl