mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 13:42:25 -07:00
properly override push/knockback methods
This prevent the creaking from being pushed with knockback enchant when it can't move
This commit is contained in:
@@ -1625,6 +1625,27 @@ diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/ja
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
||||
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
|
||||
@@ -0,0 +0,0 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
|
||||
/**
|
||||
* Gets the enchantable component. Higher values allow higher enchantments.
|
||||
*
|
||||
- * @return max_stack_size
|
||||
+ * @return the enchantable value
|
||||
*/
|
||||
int getEnchantable();
|
||||
|
||||
@@ -0,0 +0,0 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
|
||||
|
||||
/**
|
||||
* Gets the item which this item will convert to when used.
|
||||
- * <p>
|
||||
- * The returned component is a snapshot of its current state and does not
|
||||
- * reflect a live view of what is on an item. After changing any value on
|
||||
- * this component, it must be set with {@link #setUseRemainder(ItemStack)}
|
||||
- * to apply the changes.
|
||||
*
|
||||
* @return remainder
|
||||
*/
|
||||
@@ -0,0 +0,0 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
|
||||
* The returned component is a snapshot of its current state and does not
|
||||
* reflect a live view of what is on an item. After changing any value on
|
||||
|
Reference in New Issue
Block a user