Commits
md_5 authored f4f2ef4c273
264 264 | |
265 265 | |
266 266 | public Entity getPassenger(); |
267 267 | |
268 268 | /** |
269 269 | * Set the passenger of a vehicle. |
270 270 | * |
271 271 | * @param passenger The new passenger. |
272 272 | * @return false if it could not be done for whatever reason |
273 273 | * @deprecated entities may have multiple passengers, use |
274 - | * {@link #getPassengers()} |
274 + | * {@link #addPassenger(org.bukkit.entity.Entity)} |
275 275 | */ |
276 276 | |
277 277 | public boolean setPassenger( Entity passenger); |
278 278 | |
279 279 | /** |
280 280 | * Gets a list of passengers of this vehicle. |
281 281 | * <p> |
282 282 | * The returned list will not be directly linked to the entity's current |
283 283 | * passengers, and no guarantees are made as to its mutability. |
284 284 | * |