mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
More Chest Block API
This commit is contained in:
parent
daebdc24e7
commit
fd8df6aeed
2 changed files with 20 additions and 1 deletions
|
@ -27,4 +27,14 @@ public interface Chest extends Container, LootableBlockInventory, Lidded { // Pa
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
Inventory getBlockInventory();
|
Inventory getBlockInventory();
|
||||||
|
|
||||||
|
// Paper start - More Chest Block API
|
||||||
|
/**
|
||||||
|
* Checks whether this chest is blocked
|
||||||
|
* by either a block above or a sitting cat
|
||||||
|
*
|
||||||
|
* @return whether this chest is blocked
|
||||||
|
*/
|
||||||
|
boolean isBlocked();
|
||||||
|
// Paper end - More Chest Block API
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,13 @@ package org.bukkit.block;
|
||||||
/**
|
/**
|
||||||
* Represents a captured state of an ender chest.
|
* Represents a captured state of an ender chest.
|
||||||
*/
|
*/
|
||||||
public interface EnderChest extends Lidded, TileState { }
|
public interface EnderChest extends Lidded, TileState {
|
||||||
|
// Paper start - More Chest Block API
|
||||||
|
/**
|
||||||
|
* Checks whether this ender chest is blocked by a block above
|
||||||
|
*
|
||||||
|
* @return whether this ender chest is blocked
|
||||||
|
*/
|
||||||
|
boolean isBlocked();
|
||||||
|
// Paper end - More Chest Block API
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue