use of net.minecraft.entity.ai.controller.MovementController in project bioplethora by AquexTheSeal.
the class WaterAndLandAnimalEntity method switchNavigator.
public void switchNavigator(boolean onLand) {
if (onLand) {
this.moveControl = new MovementController(this);
this.navigation = new GroundPathNavigator(this, level);
this.isLandNavigator = true;
} else {
this.moveControl = new WaterMoveController(this, 1.2F);
this.navigation = new WaterAndLandPathNavigator(this, level);
this.isLandNavigator = false;
}
}
Aggregations