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