use of io.github.bioplethora.entity.ai.controller.WaterMoveController 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;
}
}
use of io.github.bioplethora.entity.ai.controller.WaterMoveController in project bioplethora by AquexTheSeal.
the class BPAirWaterLandEntity method switchNavigator.
@Override
public void switchNavigator(boolean onLand) {
if (onLand) {
this.moveControl = new BPAirWaterLandEntity.MoveHelperController(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