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:
io.papermc.paper.block.LockableTileState,org.bukkit.block.BlockState,org.bukkit.block.Container,org.bukkit.block.Furnace,org.bukkit.block.Lockable,org.bukkit.block.TileState,org.bukkit.inventory.BlockInventoryHolder,org.bukkit.inventory.InventoryHolder,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.persistence.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 org.bukkit.Material material) Constructs a newAbstractFurnaceMockfor the providedMaterial.protectedAbstractFurnaceMock(@NotNull org.bukkit.block.Block block) Constructs a newAbstractFurnaceMockfor the providedBlock. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull FurnaceInventoryMockshortdoubleshortint@NotNull org.bukkit.inventory.FurnaceInventoryintgetRecipeUsedCount(@NotNull org.bukkit.NamespacedKey furnaceRecipe) @NotNull org.bukkit.inventory.FurnaceInventorybooleanhasRecipeUsedCount(@NotNull org.bukkit.NamespacedKey furnaceRecipe) voidsetBurnTime(short burnTime) voidsetCookSpeedMultiplier(double multiplier) voidsetCookTime(short cookTime) voidsetCookTimeTotal(int cookTimeTotal) voidsetRecipesUsed(@NotNull Map<org.bukkit.inventory.CookingRecipe<?>, Integer> recipesUsed) voidsetRecipeUsedCount(@NotNull org.bukkit.inventory.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, 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.block.Lockable
getLock, isLocked, setLockMethods 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
protected AbstractFurnaceMock(@NotNull @NotNull org.bukkit.Material material) Constructs a newAbstractFurnaceMockfor the providedMaterial. Only supportsMaterial.SMOKER,Material.FURNACE, andMaterial.BLAST_FURNACE.- Parameters:
material- The material this state is for.
-
AbstractFurnaceMock
protected AbstractFurnaceMock(@NotNull @NotNull org.bukkit.block.Block block) 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 interfaceorg.bukkit.block.Furnace
-
setBurnTime
public void setBurnTime(short burnTime) - Specified by:
setBurnTimein interfaceorg.bukkit.block.Furnace
-
getCookTime
public short getCookTime()- Specified by:
getCookTimein interfaceorg.bukkit.block.Furnace
-
setCookTime
public void setCookTime(short cookTime) - Specified by:
setCookTimein interfaceorg.bukkit.block.Furnace
-
getCookTimeTotal
public int getCookTimeTotal()- Specified by:
getCookTimeTotalin interfaceorg.bukkit.block.Furnace
-
setCookTimeTotal
public void setCookTimeTotal(int cookTimeTotal) - Specified by:
setCookTimeTotalin interfaceorg.bukkit.block.Furnace
-
getRecipesUsed
- Specified by:
getRecipesUsedin interfaceorg.bukkit.block.Furnace
-
getCookSpeedMultiplier
public double getCookSpeedMultiplier()- Specified by:
getCookSpeedMultiplierin interfaceorg.bukkit.block.Furnace
-
setCookSpeedMultiplier
public void setCookSpeedMultiplier(double multiplier) - Specified by:
setCookSpeedMultiplierin interfaceorg.bukkit.block.Furnace
-
getRecipeUsedCount
public int getRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe) - Specified by:
getRecipeUsedCountin interfaceorg.bukkit.block.Furnace
-
hasRecipeUsedCount
public boolean hasRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe) - Specified by:
hasRecipeUsedCountin interfaceorg.bukkit.block.Furnace
-
setRecipeUsedCount
public void setRecipeUsedCount(@NotNull @NotNull org.bukkit.inventory.CookingRecipe<?> furnaceRecipe, int count) - Specified by:
setRecipeUsedCountin interfaceorg.bukkit.block.Furnace
-
setRecipesUsed
public void setRecipesUsed(@NotNull @NotNull Map<org.bukkit.inventory.CookingRecipe<?>, Integer> recipesUsed) - Specified by:
setRecipesUsedin interfaceorg.bukkit.block.Furnace
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.FurnaceInventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.block.Container- Specified by:
getInventoryin interfaceorg.bukkit.block.Furnace- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder- Overrides:
getInventoryin classContainerMock
-
getSnapshotInventory
@NotNull public @NotNull org.bukkit.inventory.FurnaceInventory getSnapshotInventory()- Specified by:
getSnapshotInventoryin interfaceorg.bukkit.block.Container- Specified by:
getSnapshotInventoryin interfaceorg.bukkit.block.Furnace- Overrides:
getSnapshotInventoryin classContainerMock
-