mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-323: Enchanting tables can no longer be force opened.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
14b93b5d93
commit
ce85765d6a
1 changed files with 14 additions and 0 deletions
|
@ -76,6 +76,18 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
|
||||||
*/
|
*/
|
||||||
public InventoryView openWorkbench(Location location, boolean force);
|
public InventoryView openWorkbench(Location location, boolean force);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Opens an empty enchanting inventory window with the player's inventory
|
||||||
|
* on the bottom.
|
||||||
|
*
|
||||||
|
* @param location The location to attach it to. If null, the player's
|
||||||
|
* location is used.
|
||||||
|
* @return The newly opened inventory view, or null if it could not be
|
||||||
|
* opened.
|
||||||
|
* @deprecated You cannot force open an enchanting table.
|
||||||
|
*/
|
||||||
|
public InventoryView openEnchanting(Location location);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens an empty enchanting inventory window with the player's inventory
|
* Opens an empty enchanting inventory window with the player's inventory
|
||||||
* on the bottom.
|
* on the bottom.
|
||||||
|
@ -86,7 +98,9 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
|
||||||
* location, no inventory will be opened and null will be returned.
|
* location, no inventory will be opened and null will be returned.
|
||||||
* @return The newly opened inventory view, or null if it could not be
|
* @return The newly opened inventory view, or null if it could not be
|
||||||
* opened.
|
* opened.
|
||||||
|
* @deprecated You cannot force open an enchanting table.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public InventoryView openEnchanting(Location location, boolean force);
|
public InventoryView openEnchanting(Location location, boolean force);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue