Class AbstractFurnaceMock
java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
be.seeseemelk.mockbukkit.block.state.ContainerMock
be.seeseemelk.mockbukkit.block.state.AbstractFurnaceMock
- All Implemented Interfaces:
LockableTileState,TileStateInventoryHolder,PersistentDataViewHolder,BlockState,Container,Furnace,Lockable,TileState,BlockInventoryHolder,InventoryHolder,Metadatable,Nameable,PersistentDataHolder
- Direct Known Subclasses:
BlastFurnaceMock,SmokerMock
Mock implementation of a
Furnace.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFurnaceMock(@NotNull AbstractFurnaceMock state) Constructs a newAbstractFurnaceMockby cloning the data from an existing one.protectedAbstractFurnaceMock(@NotNull Material material) Constructs a newAbstractFurnaceMockfor the providedMaterial.protectedAbstractFurnaceMock(@NotNull Block block) Constructs a newAbstractFurnaceMockfor the providedBlock. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull FurnaceInventoryMockshortdoubleshortint@NotNull FurnaceInventory@NotNull Map<CookingRecipe<?>, Integer> intgetRecipeUsedCount(@NotNull NamespacedKey furnaceRecipe) @NotNull FurnaceInventorybooleanhasRecipeUsedCount(@NotNull NamespacedKey furnaceRecipe) voidsetBurnTime(short burnTime) voidsetCookSpeedMultiplier(double multiplier) voidsetCookTime(short cookTime) voidsetCookTimeTotal(int cookTimeTotal) voidsetRecipesUsed(@NotNull Map<CookingRecipe<?>, Integer> recipesUsed) voidsetRecipeUsedCount(@NotNull CookingRecipe<?> furnaceRecipe, int count) Methods inherited from class be.seeseemelk.mockbukkit.block.state.ContainerMock
customName, customName, getCustomName, getLock, getSnapshot, isLocked, setCustomName, setLockMethods inherited from class be.seeseemelk.mockbukkit.block.state.TileStateMock
getPersistentDataContainer, isSnapshotMethods inherited from class be.seeseemelk.mockbukkit.block.state.BlockStateMock
checkType, checkType, checkType, checkType, copy, copy, equals, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isPlaced, mockState, mockState, removeMetadata, setBlockData, setData, setMetadata, setRawData, setType, update, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlockMethods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
Constructor Details
-
AbstractFurnaceMock
Constructs a newAbstractFurnaceMockfor the providedMaterial. Only supportsMaterial.SMOKER,Material.FURNACE, andMaterial.BLAST_FURNACE.- Parameters:
material- The material this state is for.
-
AbstractFurnaceMock
Constructs a newAbstractFurnaceMockfor the providedBlock. Only supportsMaterial.SMOKER,Material.FURNACE, andMaterial.BLAST_FURNACE.- Parameters:
block- The block this state is for.
-
AbstractFurnaceMock
Constructs a newAbstractFurnaceMockby cloning the data from an existing one.- Parameters:
state- The state to clone.
-
-
Method Details
-
createInventory
- Specified by:
createInventoryin classContainerMock- Returns:
- A new inventory, of the correct type for the state.
-
getBurnTime
public short getBurnTime()- Specified by:
getBurnTimein interfaceFurnace
-
setBurnTime
public void setBurnTime(short burnTime) - Specified by:
setBurnTimein interfaceFurnace
-
getCookTime
public short getCookTime()- Specified by:
getCookTimein interfaceFurnace
-
setCookTime
public void setCookTime(short cookTime) - Specified by:
setCookTimein interfaceFurnace
-
getCookTimeTotal
public int getCookTimeTotal()- Specified by:
getCookTimeTotalin interfaceFurnace
-
setCookTimeTotal
public void setCookTimeTotal(int cookTimeTotal) - Specified by:
setCookTimeTotalin interfaceFurnace
-
getRecipesUsed
- Specified by:
getRecipesUsedin interfaceFurnace
-
getCookSpeedMultiplier
public double getCookSpeedMultiplier()- Specified by:
getCookSpeedMultiplierin interfaceFurnace
-
setCookSpeedMultiplier
public void setCookSpeedMultiplier(double multiplier) - Specified by:
setCookSpeedMultiplierin interfaceFurnace
-
getRecipeUsedCount
- Specified by:
getRecipeUsedCountin interfaceFurnace
-
hasRecipeUsedCount
- Specified by:
hasRecipeUsedCountin interfaceFurnace
-
setRecipeUsedCount
- Specified by:
setRecipeUsedCountin interfaceFurnace
-
setRecipesUsed
- Specified by:
setRecipesUsedin interfaceFurnace
-
getInventory
- Specified by:
getInventoryin interfaceFurnace- Specified by:
getInventoryin interfaceInventoryHolder- Specified by:
getInventoryin interfaceTileStateInventoryHolder- Overrides:
getInventoryin classContainerMock
-
getSnapshotInventory
- Specified by:
getSnapshotInventoryin interfaceFurnace- Specified by:
getSnapshotInventoryin interfaceTileStateInventoryHolder- Overrides:
getSnapshotInventoryin classContainerMock
-