API to get Material from Boats and Minecarts
== AT == public net.minecraft.world.entity.vehicle.AbstractBoat getDropItem()Lnet/minecraft/world/item/Item;
This commit is contained in:
@@ -121,16 +121,15 @@
|
||||
double d0 = entity.getX() - this.getX();
|
||||
double d1 = entity.getZ() - this.getZ();
|
||||
double d2 = d0 * d0 + d1 * d1;
|
||||
@@ -644,5 +694,27 @@
|
||||
|
||||
@@ -645,4 +695,27 @@
|
||||
public boolean isFurnace() {
|
||||
return false;
|
||||
+ }
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start - Methods for getting and setting flying and derailed velocity modifiers
|
||||
+ public Vector getFlyingVelocityMod() {
|
||||
+ return new Vector(this.flyingX, this.flyingY, this.flyingZ);
|
||||
}
|
||||
+ }
|
||||
+
|
||||
+ public void setFlyingVelocityMod(Vector flying) {
|
||||
+ this.flyingX = flying.getX();
|
||||
@@ -148,4 +147,5 @@
|
||||
+ this.derailedZ = derailed.getZ();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+ public net.minecraft.world.item.Item publicGetDropItem() { return getDropItem(); } // Paper - api to get boat and minecart material - expose public drop item
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user