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 DataHolder
DataHolder.Immutable<I>, DataHolder.MutableNested classes/interfaces inherited from interface SerializableDataHolder
SerializableDataHolder.Immutable<I>, SerializableDataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptiondefault Value.Mutable<Ticks> cooldown()voidRequests thisHopperto transfer an item to the next carrier.Methods inherited from interface BlockCarrier
inventoryMethods inherited from interface BlockEntity
block, canTick, copy, createArchetype, isRemoved, isTicking, locatableBlock, mirror, mirror, remove, rotate, rotate, setTicking, typeMethods inherited from interface CarrierBlockEntity
inventory, lockTokenMethods inherited from interface 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 DataSerializable
contentVersion, toContainer, toViewMethods inherited from interface Locatable
blockPosition, location, serverLocation, worldMethods inherited from interface NameableBlockEntity
displayNameMethods inherited from interface SerializableDataHolder
validateRawDataMethods inherited from interface SerializableDataHolder.Mutable
setRawDataMethods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
cooldown
- Returns:
- The amount of time in ticks till the hopper can transfer another item.
-
transferItem
void transferItem()Requests thisHopperto transfer an item to the next carrier.Since
Hoppers normally send items to otherCarrierBlockEntitys adjacent to themselves, if there is no available carrier to send an item to, this will perform nothing.
-