Interface Chest
- 
- All Superinterfaces:
- BlockCarrier,- BlockEntity,- Carrier,- CarrierBlockEntity,- CopyableDataHolder,- DataHolder,- DataHolder.Mutable,- DataSerializable,- Locatable,- NameableBlockEntity,- NameableCarrierBlockEntity,- SerializableDataHolder,- SerializableDataHolder.Mutable,- ValueContainer
 - All Known Subinterfaces:
- TrappedChest
 
 public interface Chest extends NameableCarrierBlockEntity Represents a Chest.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolderDataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
 - 
Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolderSerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Value.Mutable<ChestAttachmentType>attachmentType()Optional<Chest>connectedChest()Returns the connectedChest, if available.Optional<Inventory>doubleChestInventory()Returns the inventory representing the combination of this chest and its neighbor (which form a double chest), if available.- 
Methods inherited from interface org.spongepowered.api.item.inventory.BlockCarrierinventory
 - 
Methods inherited from interface org.spongepowered.api.block.entity.BlockEntityblock, copy, createArchetype, isValid, locatableBlock, mirror, mirror, rotate, rotate, setValid, type
 - 
Methods inherited from interface org.spongepowered.api.block.entity.carrier.CarrierBlockEntityinventory, lockToken
 - 
Methods inherited from interface org.spongepowered.api.data.DataHolder.MutablecopyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undo
 - 
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializablecontentVersion, toContainer
 - 
Methods inherited from interface org.spongepowered.api.world.LocatableblockPosition, location, serverLocation, world
 - 
Methods inherited from interface org.spongepowered.api.block.entity.NameableBlockEntitydisplayName
 - 
Methods inherited from interface org.spongepowered.api.data.SerializableDataHoldervalidateRawData
 - 
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder.MutablesetRawData
 
- 
 
- 
- 
- 
Method Detail- 
doubleChestInventoryOptional<Inventory> doubleChestInventory() Returns the inventory representing the combination of this chest and its neighbor (which form a double chest), if available.If this chest is not part of a double chest, then this method will return Optional.empty().- Returns:
- The combined inventory, if available
 
 - 
connectedChestOptional<Chest> connectedChest() Returns the connectedChest, if available.If this chest is not part of a double chest, then this method will return Optional.empty().- Returns:
- The connected Chest, if available
 
 - 
attachmentTypedefault Value.Mutable<ChestAttachmentType> attachmentType() - Returns:
- The attachment type of this chest.
 
 
- 
 
-