Interface BrewingStand
- All Superinterfaces:
BlockCarrier,BlockEntity,Carrier,CarrierBlockEntity,CopyableDataHolder,DataHolder,DataHolder.Mutable,DataSerializable,Locatable,NameableBlockEntity,NameableCarrierBlockEntity,SerializableDataHolder,SerializableDataHolder.Mutable,ValueContainer
Represents a Brewing Stand.
-
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 TypeMethodDescriptionbooleanbrew()Attempts to brew the current potions if possible.default Value.Mutable<Integer> fuel()default Value.Mutable<Ticks> 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.block.entity.carrier.CarrierBlockEntity
inventory, lockTokenMethods 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.block.entity.NameableBlockEntity
displayNameMethods inherited from interface org.spongepowered.api.data.SerializableDataHolder
validateRawDataMethods inherited from interface org.spongepowered.api.data.SerializableDataHolder.Mutable
setRawData
-
Method Details
-
fuel
Keys.FUELNote 1
ItemTypes.BLAZE_POWDERsupplies 20 fuel- Returns:
- The amount of fuel left in the brewing stand.
-
remainingBrewTime
- Returns:
- The remaining brewing time in ticks.
-
brew
boolean brew()Attempts to brew the current potions if possible.This will work if there is a compatible recipe.
- Returns:
- If the brew was successful
-