SPIGOT-5311: Add API to get/set item associated with throwable projectiles
By: Lars Dormans <lars.dormans@live.nl>
This commit is contained in:
@@ -11,3 +11,18 @@
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -27,7 +27,13 @@
|
||||
|
||||
protected abstract Item i();
|
||||
|
||||
- protected ItemStack getItem() {
|
||||
+ // CraftBukkit start
|
||||
+ public Item getDefaultItem() {
|
||||
+ return i();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
+ public ItemStack getItem() { // PAIL protected -> public
|
||||
return (ItemStack) this.getDataWatcher().get(EntityProjectileThrowable.e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user