mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Add enchantment seed update API
This commit is contained in:
parent
34c99b8c67
commit
ad8ae89c95
2 changed files with 14 additions and 1 deletions
|
@ -244,7 +244,7 @@
|
||||||
ItemStack itemstack = ItemStack.EMPTY;
|
ItemStack itemstack = ItemStack.EMPTY;
|
||||||
Slot slot1 = (Slot) this.slots.get(slot);
|
Slot slot1 = (Slot) this.slots.get(slot);
|
||||||
|
|
||||||
@@ -293,4 +385,17 @@
|
@@ -293,4 +385,23 @@
|
||||||
|
|
||||||
return itemstack;
|
return itemstack;
|
||||||
}
|
}
|
||||||
|
@ -261,4 +261,10 @@
|
||||||
+ return this.bukkitEntity;
|
+ return this.bukkitEntity;
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
+
|
||||||
|
+ // Paper start - add enchantment seed update API
|
||||||
|
+ public void setEnchantmentSeed(int seed) {
|
||||||
|
+ this.enchantmentSeed.set(seed);
|
||||||
|
+ }
|
||||||
|
+ // Paper end - add enchantment seed update API
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,13 @@ public class CraftEnchantmentView extends CraftInventoryView<EnchantmentMenu, En
|
||||||
return this.container.getEnchantmentSeed();
|
return this.container.getEnchantmentSeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start - add enchantment seed update API
|
||||||
|
@Override
|
||||||
|
public void setEnchantmentSeed(int seed) {
|
||||||
|
this.container.setEnchantmentSeed(seed);
|
||||||
|
}
|
||||||
|
// Paper end - add enchantment seed update API
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public EnchantmentOffer[] getOffers() {
|
public EnchantmentOffer[] getOffers() {
|
||||||
|
|
Loading…
Reference in a new issue