mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Improve ItemFactory#enchantItem consistency
By: md_5 <git@md-5.net>
This commit is contained in:
parent
cfcc75669d
commit
168c6c55ad
1 changed files with 3 additions and 5 deletions
|
@ -184,7 +184,7 @@ public interface ItemFactory {
|
||||||
* @param item the item to enchant
|
* @param item the item to enchant
|
||||||
* @param level the level to use, which is the level in the enchantment table
|
* @param level the level to use, which is the level in the enchantment table
|
||||||
* @param allowTreasures allows treasure enchants, e.g. mending, if true.
|
* @param allowTreasures allows treasure enchants, e.g. mending, if true.
|
||||||
* @return the modified ItemStack, or a copy if the ItemStack cannot be enchanted directly
|
* @return a new ItemStack containing the result of the Enchantment
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
ItemStack enchantItem(@NotNull final Entity entity, @NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
ItemStack enchantItem(@NotNull final Entity entity, @NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
||||||
|
@ -198,8 +198,7 @@ public interface ItemFactory {
|
||||||
* @param item the item to enchant
|
* @param item the item to enchant
|
||||||
* @param level the level to use, which is the level in the enchantment table
|
* @param level the level to use, which is the level in the enchantment table
|
||||||
* @param allowTreasures allow the treasure enchants, e.g. mending, if true.
|
* @param allowTreasures allow the treasure enchants, e.g. mending, if true.
|
||||||
* @return the modified ItemStack, or a copy if the ItemStack cannot be
|
* @return a new ItemStack containing the result of the Enchantment
|
||||||
* enchanted directly
|
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
ItemStack enchantItem(@NotNull final World world, @NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
ItemStack enchantItem(@NotNull final World world, @NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
||||||
|
@ -212,8 +211,7 @@ public interface ItemFactory {
|
||||||
* @param item the item to enchant
|
* @param item the item to enchant
|
||||||
* @param level the level to use, which is the level in the enchantment table
|
* @param level the level to use, which is the level in the enchantment table
|
||||||
* @param allowTreasures allow treasure enchantments, e.g. mending, if true.
|
* @param allowTreasures allow treasure enchantments, e.g. mending, if true.
|
||||||
* @return the modified ItemStack, or a copy if the ItemStack cannot be
|
* @return a new ItemStack containing the result of the Enchantment
|
||||||
* enchanted directly
|
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
ItemStack enchantItem(@NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
ItemStack enchantItem(@NotNull final ItemStack item, final int level, final boolean allowTreasures);
|
||||||
|
|
Loading…
Reference in a new issue