public interface MultiBlockCarrier extends BlockCarrier
| Modifier and Type | Method and Description |
|---|---|
Optional<Inventory> |
getInventory(Location<World> at)
Returns the Inventory at given location if owned by this Carrier.
|
Optional<Inventory> |
getInventory(Location<World> at,
Direction from)
Returns the Inventory at given location if owned by this Carrier and
accessible from given direction.
|
List<Location<World>> |
getLocations()
Returns the Locations of the Blocks.
|
getInventory, getLocationgetInventoryList<Location<World>> getLocations()
Optional<Inventory> getInventory(Location<World> at)
at - The locationOptional<Inventory> getInventory(Location<World> at, Direction from)
e.g. A Furnace accessed from Direction.DOWN will return
its Fuel Slot
at - The Locationfrom - The Direction