mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-7239: Getter/setter for player's enchantment seed
This commit is contained in:
parent
604999b377
commit
e417a74856
1 changed files with 21 additions and 0 deletions
|
|
@ -67,6 +67,26 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
||||||
*/
|
*/
|
||||||
public boolean setWindowProperty(@NotNull InventoryView.Property prop, int value);
|
public boolean setWindowProperty(@NotNull InventoryView.Property prop, int value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the player's current enchantment seed.
|
||||||
|
*
|
||||||
|
* The Seed is used to generate enchantment options in the enchanting table
|
||||||
|
* for the player.
|
||||||
|
*
|
||||||
|
* @return the player's enchantment seed
|
||||||
|
*/
|
||||||
|
public int getEnchantmentSeed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the player's enchantment seed.
|
||||||
|
*
|
||||||
|
* The Seed is used to generate enchantment options in the enchanting table
|
||||||
|
* for the player.
|
||||||
|
*
|
||||||
|
* @param seed the player's new enchantment seed
|
||||||
|
*/
|
||||||
|
public void setEnchantmentSeed(int seed);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the inventory view the player is currently viewing. If they do not
|
* Gets the inventory view the player is currently viewing. If they do not
|
||||||
* have an inventory window open, it returns their internal crafting view.
|
* have an inventory window open, it returns their internal crafting view.
|
||||||
|
|
@ -603,4 +623,5 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public Firework fireworkBoost(@NotNull ItemStack fireworkItemStack);
|
public Firework fireworkBoost(@NotNull ItemStack fireworkItemStack);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue