Search in sources :

Example 1 with BoatEntity

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);
    }
}
Also used : Entity(net.minecraft.entity.Entity) BoatEntity(net.minecraft.entity.vehicle.BoatEntity) BoatEntity(net.minecraft.entity.vehicle.BoatEntity) EventHandler(meteordevelopment.orbit.EventHandler)

Aggregations

EventHandler (meteordevelopment.orbit.EventHandler)1 Entity (net.minecraft.entity.Entity)1 BoatEntity (net.minecraft.entity.vehicle.BoatEntity)1