Interface FurnaceBlockEntity
-
- All Superinterfaces:
BlockCarrier
,BlockEntity
,Carrier
,CarrierBlockEntity
,CopyableDataHolder
,DataHolder
,DataHolder.Mutable
,DataSerializable
,Locatable
,NameableBlockEntity
,NameableCarrierBlockEntity
,SerializableDataHolder
,SerializableDataHolder.Mutable
,ValueContainer
- All Known Subinterfaces:
BlastFurnace
,Furnace
,Smoker
public interface FurnaceBlockEntity extends NameableCarrierBlockEntity
Represents the types of furnaces in Vanilla minecraft.
-
-
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Value.Mutable<Ticks>
maxBurnTime()
Gets theValue.Mutable
for the maximum amount of fuel that can be supplied with the used fuel item.default Value.Mutable<Ticks>
maxCookTime()
Gets theValue.Mutable
for the total time the item stack has to cook until it is cooked.default Value.Mutable<Ticks>
passedCookTime()
Gets theValue.Mutable
for the already passed cook time of the item stack in this furnace.boolean
process()
Attempts to process theRecipe
for results.default Value.Mutable<Integer>
remainingFuel()
Gets theValue.Mutable
for the remaining fuel.-
Methods inherited from interface org.spongepowered.api.item.inventory.BlockCarrier
inventory
-
Methods inherited from interface org.spongepowered.api.block.entity.BlockEntity
block, copy, createArchetype, isValid, locatableBlock, mirror, mirror, rotate, rotate, setValid, 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 Detail
-
process
boolean process()
Attempts to process theRecipe
for results.- Returns:
- If the process was successful.
-
remainingFuel
default Value.Mutable<Integer> remainingFuel()
Gets theValue.Mutable
for the remaining fuel.- Returns:
- The value for the remaining fuel
-
maxBurnTime
default Value.Mutable<Ticks> maxBurnTime()
Gets theValue.Mutable
for the maximum amount of fuel that can be supplied with the used fuel item.- Returns:
- The value for the maximum amount of fuel that can be supplied with the used fuel item
-
passedCookTime
default Value.Mutable<Ticks> passedCookTime()
Gets theValue.Mutable
for the already passed cook time of the item stack in this furnace.- Returns:
- The value for the already passed cook time
-
maxCookTime
default Value.Mutable<Ticks> maxCookTime()
Gets theValue.Mutable
for the total time the item stack has to cook until it is cooked.- Returns:
- The value for the time the item has to cook
-
-