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:
parent
119c616ab9
commit
38ea31d1cb
3 changed files with 19 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue