How to get a boat?

Discussion in 'Spigot Plugin Development' started by coolnickname, May 7, 2015.

  1. I need to get a boat, but how? do I need to do something like this:
    Code (Text):
    Boat boat = Entity.Boat;
    And if so, how should I call fundtions like: .setVelocity?
    And does that also spawns a new boat? because I know how to spawn a boat.
  2. I recommend you learn how Java works before trying to write complex software with it.
    • Agree Agree x 1
    • Winner Winner x 1
  3. I know my Java, I just don't know how to do this.
    • Funny Funny x 1
  4. Read spigot docs!
    It should tell you.
    • Agree Agree x 1
  5. Read the Javadoc and look at the Boat page. Click "setVelocity". This should give you a general idea of what to do.
    • Agree Agree x 1
  6. Try
    Code (Text):
    Boat b = (Boat) yourEntity;
    b.setVelocity(new Vector(1, 1, 1));
  7. No, you don't know Java. Please read the docs.
    • Informative Informative x 1