Interface CarrierBlockEntity
- All Superinterfaces:
BlockCarrier,BlockEntity,Carrier,CopyableDataHolder,DataHolder,DataHolder.Mutable,DataSerializable,Locatable,SerializableDataHolder,SerializableDataHolder.Mutable,ValueContainer
- All Known Subinterfaces:
Barrel,BlastFurnace,BrewingStand,Campfire,Chest,Crafter,Dispenser,Dropper,Furnace,FurnaceBlockEntity,Hopper,NameableCarrierBlockEntity,ShulkerBox,Smoker,TrappedChest
Represents a
BlockEntity that is a carrier of
BlockEntityInventory.
Additional information regarding the CarrierBlockEntity is
dependent on the BlockEntity itself.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.MutableNested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolder
SerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptionReturns the inventory that this Carrier is holding.default Optional<Value.Mutable<String>> Methods inherited from interface org.spongepowered.api.item.inventory.BlockCarrier
inventoryMethods inherited from interface org.spongepowered.api.block.entity.BlockEntity
block, canTick, copy, createArchetype, isRemoved, isTicking, locatableBlock, mirror, mirror, remove, rotate, rotate, setTicking, typeMethods inherited from interface org.spongepowered.api.data.DataHolder.Mutable
copyFrom, 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, undoMethods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainerMethods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, worldMethods inherited from interface org.spongepowered.api.data.SerializableDataHolder
validateRawDataMethods inherited from interface org.spongepowered.api.data.SerializableDataHolder.Mutable
setRawData
-
Method Details
-
inventory
BlockEntityInventory<CarrierBlockEntity> inventory()Description copied from interface:CarrierReturns the inventory that this Carrier is holding. -
lockToken
Keys.LOCK_TOKENThe absence of the value signifies this BlockEntity has no lock.
- Returns:
- The lock token used for opening this
BlockEntity.
-