13
0
geforkt von Mirrors/Paper

More Chest Block API

Dieser Commit ist enthalten in:
SoSeDiK 2024-05-01 08:22:13 +03:00
Ursprung daebdc24e7
Commit fd8df6aeed
2 geänderte Dateien mit 20 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -27,4 +27,14 @@ public interface Chest extends Container, LootableBlockInventory, Lidded { // Pa
*/
@NotNull
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
}

Datei anzeigen

@ -3,4 +3,13 @@ package org.bukkit.block;
/**
* 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
}