Interface Hopper
- All Superinterfaces:
BlockCarrier
,BlockEntity
,Carrier
,CarrierBlockEntity
,CopyableDataHolder
,DataHolder
,DataHolder.Mutable
,DataSerializable
,Locatable
,NameableBlockEntity
,NameableCarrierBlockEntity
,SerializableDataHolder
,SerializableDataHolder.Mutable
,ValueContainer
Represents a Hopper.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolder
SerializableDataHolder.Immutable<I extends SerializableDataHolder.Immutable<I>>, SerializableDataHolder.Mutable
-
Method Summary
Modifier and TypeMethodDescriptiondefault Value.Mutable
<Ticks> cooldown()
void
Requests thisHopper
to transfer an item to the next carrier.Methods inherited from interface org.spongepowered.api.item.inventory.BlockCarrier
inventory
Methods inherited from interface org.spongepowered.api.block.entity.BlockEntity
block, canTick, copy, createArchetype, isRemoved, isTicking, locatableBlock, mirror, mirror, remove, rotate, rotate, setTicking, type
Methods inherited from interface org.spongepowered.api.block.entity.carrier.CarrierBlockEntity
inventory, lockToken
Methods 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, undo
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
Methods inherited from interface org.spongepowered.api.block.entity.NameableBlockEntity
displayName
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder
validateRawData
Methods inherited from interface org.spongepowered.api.data.SerializableDataHolder.Mutable
setRawData
-
Method Details
-
cooldown
- Returns:
- The amount of time in ticks till the hopper can transfer another item.
-
transferItem
void transferItem()Requests thisHopper
to transfer an item to the next carrier.Since
Hopper
s normally send items to otherCarrierBlockEntity
s adjacent to themselves, if there is no available carrier to send an item to, this will perform nothing.
-