Improvements to BlockStates

* Update Javadoc of block state classes to better match implementation behaviour.
* Add Container interface which provides access to the snapshot inventory.

By: Lukas Hennig <lukas@wirsindwir.de>
This commit is contained in:
Bukkit/Spigot
2017-08-05 14:35:40 +10:00
parent 5727987ab3
commit 2ab655238c
25 changed files with 186 additions and 82 deletions

View File

@@ -2,15 +2,14 @@ package org.bukkit.block;
import org.bukkit.Nameable;
import org.bukkit.inventory.BrewerInventory;
import org.bukkit.inventory.InventoryHolder;
/**
* Represents a brewing stand.
* Represents a captured state of a brewing stand.
*/
public interface BrewingStand extends BlockState, InventoryHolder, Lockable, Nameable {
public interface BrewingStand extends Container, Nameable {
/**
* How much time is left in the brewing cycle
* How much time is left in the brewing cycle.
*
* @return Brew Time
*/
@@ -37,5 +36,9 @@ public interface BrewingStand extends BlockState, InventoryHolder, Lockable, Nam
*/
void setFuelLevel(int level);
public BrewerInventory getInventory();
@Override
BrewerInventory getInventory();
@Override
BrewerInventory getSnapshotInventory();
}