Interface BlockCarrier
- All Known Subinterfaces:
Barrel, BlastFurnace, BrewingStand, Campfire, CarrierBlockEntity, Chest, Crafter, Dispenser, Dropper, Furnace, FurnaceBlockEntity, Hopper, MultiBlockCarrier, NameableCarrierBlockEntity, ShulkerBox, SingleBlockCarrier, Smoker, TrappedChest
-
Method Summary
Methods inherited from interface 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.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
-