mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-03 18:47:43 +01:00
Remove a method from the API
This commit is contained in:
parent
86aa0e5630
commit
d74071acda
@ -75,15 +75,6 @@ public interface MinepacksPlugin
|
|||||||
*/
|
*/
|
||||||
void openBackpack(@NotNull final Player opener, @Nullable final Backpack backpack, boolean editable);
|
void openBackpack(@NotNull final Player opener, @Nullable final Backpack backpack, boolean editable);
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieves the backpack for a given player.
|
|
||||||
* This method runs sync! If the requested backpack is not in the cache it will block you server! Use with extreme care!
|
|
||||||
*
|
|
||||||
* @param owner The player who's backpack should be retrieved.
|
|
||||||
* @return The backpack of the given player.
|
|
||||||
*/
|
|
||||||
@Nullable Backpack getBackpack(@NotNull final OfflinePlayer owner);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the backpack for a given player.
|
* Retrieves the backpack for a given player.
|
||||||
* This method only returns a backpack if it is in the cache.
|
* This method only returns a backpack if it is in the cache.
|
||||||
|
@ -210,12 +210,6 @@ public void openBackpack(@NotNull final Player opener, @Nullable final Backpack
|
|||||||
backpack.open(opener, editable);
|
backpack.open(opener, editable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public @Nullable Backpack getBackpack(@NotNull OfflinePlayer owner)
|
|
||||||
{
|
|
||||||
return database.getBackpack(owner, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable Backpack getBackpackCachedOnly(@NotNull OfflinePlayer owner)
|
public @Nullable Backpack getBackpackCachedOnly(@NotNull OfflinePlayer owner)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user