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:
Lulu13022002
2024-12-04 21:05:57 +01:00
parent f93c8c78db
commit 7d18cb068e
4 changed files with 68 additions and 9 deletions

View File

@@ -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