use of net.minecraft.entity.vehicle.BoatEntity in project meteor-crash-addon by AntiCope.
the class BoatCrash method onTick.
@EventHandler
private void onTick(TickEvent.Post event) {
Entity boat = mc.player.getVehicle();
if (!(boat instanceof BoatEntity)) {
error("You must be in a boat - disabling.");
toggle();
return;
}
for (int i = 0; i < amount.get(); i++) {
mc.getNetworkHandler().sendPacket(PACKET);
}
}
Aggregations