Package org.bukkit.event.vehicle

Examples of org.bukkit.event.vehicle.VehicleCreateEvent


public class LandBoatsTest {

    @Test
    public void testOnVehicleCreate() {

        VehicleCreateEvent event = mock(VehicleCreateEvent.class);
        Boat boat = mock(Boat.class);

        when(event.getVehicle()).thenReturn(boat);

        new LandBoats().onVehicleCreate(event);

        verify(boat).setWorkOnLand(true);
    }
View Full Code Here


  }

  @Override
  public boolean spawn(Location at) {
    if (super.spawn(at)) {
      CommonUtil.callEvent(new VehicleCreateEvent(entity));
      return true;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.bukkit.event.vehicle.VehicleCreateEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.