mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 04:17:44 +01:00
Moving some minecart flags that don't belong in the event out of the event.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
00ee553d1b
commit
ca9cd7aa45
@ -1,6 +1,5 @@
|
||||
package org.bukkit.event.vehicle;
|
||||
|
||||
import org.bukkit.Vector;
|
||||
import org.bukkit.Vehicle;
|
||||
|
||||
/**
|
||||
@ -9,41 +8,8 @@ import org.bukkit.Vehicle;
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleCreateEvent extends VehicleEvent {
|
||||
private boolean slowWhenEmpty;
|
||||
private Vector derailedVelocityFactor;
|
||||
private Vector flyingVelocityFactor;
|
||||
|
||||
public VehicleCreateEvent(Type type, Vehicle vehicle,
|
||||
boolean slowWhenEmpty, Vector derailedVelocityFactor,
|
||||
Vector flyingVelocityFactor) {
|
||||
public VehicleCreateEvent(Type type, Vehicle vehicle) {
|
||||
|
||||
super(type, vehicle);
|
||||
this.slowWhenEmpty = slowWhenEmpty;
|
||||
this.derailedVelocityFactor = derailedVelocityFactor;
|
||||
this.flyingVelocityFactor = flyingVelocityFactor;
|
||||
}
|
||||
|
||||
public void setSlowWhenEmpty(boolean setting) {
|
||||
slowWhenEmpty = setting;
|
||||
}
|
||||
|
||||
public boolean shouldSlowWhenEmpty() {
|
||||
return slowWhenEmpty;
|
||||
}
|
||||
|
||||
public void setDerailedVelocityFactor(Vector setting) {
|
||||
derailedVelocityFactor = setting.clone();
|
||||
}
|
||||
|
||||
public Vector getDerailedVelocityFactor() {
|
||||
return derailedVelocityFactor.clone();
|
||||
}
|
||||
|
||||
public void setFlyingVelocityFactor(Vector setting) {
|
||||
flyingVelocityFactor = setting.clone();
|
||||
}
|
||||
|
||||
public Vector getFlyingVelocityFactor() {
|
||||
return flyingVelocityFactor.clone();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user