Interface BlockCarrier
-
- All Known Subinterfaces:
Barrel,BlastFurnace,BrewingStand,Campfire,CarrierBlockEntity,Chest,Dispenser,Dropper,Furnace,FurnaceBlockEntity,Hopper,MultiBlockCarrier,NameableCarrierBlockEntity,ShulkerBox,SingleBlockCarrier,Smoker,TrappedChest
public interface BlockCarrier extends Carrier, Locatable
Represents a Block that is a carrier of an Inventory e.g. An Anvil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Inventoryinventory(Direction from)Returns the Inventory owned by this Carrier and accessible from the given direction.-
Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
-
-
-
-
Method Detail
-
inventory
Inventory inventory(Direction from)
Returns the Inventory owned by this Carrier and accessible from the given direction.e.g. A Furnace accessed from
Direction.DOWNwill return its Fuel SlotWhen no inventory is accessible a
EmptyInventoryis returned- Parameters:
from- The Direction- Returns:
- The inventory at the location when accessed from given direction
-
-