BlockState
, Metadatable
, PersistentDataHolder
, TileState
public interface Campfire extends TileState
Modifier and Type | Method | Description |
---|---|---|
int |
getCookTime(int index) |
Get cook time.This is the amount of time the item has been cooking for.
|
int |
getCookTimeTotal(int index) |
Get cook time total.This is the amount of time the item is required to
cook for.
|
ItemStack |
getItem(int index) |
|
int |
getSize() |
|
void |
setCookTime(int index,
int cookTime) |
Set cook time.This is the amount of time the item has been cooking for.
|
void |
setCookTimeTotal(int index,
int cookTimeTotal) |
Set cook time.This is the amount of time the item is required to cook
for.
|
void |
setItem(int index,
ItemStack item) |
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
getPersistentDataContainer
int getSize()
Inventory.getSize()
@Nullable ItemStack getItem(int index)
index
- The index of the Slot's ItemStack to returnInventory.getItem(int)
void setItem(int index, @Nullable ItemStack item)
index
- The index where to put the ItemStackitem
- The ItemStack to setInventory.setItem(int, org.bukkit.inventory.ItemStack)
int getCookTime(int index)
index
- void setCookTime(int index, int cookTime)
index
- cookTime
- Cook timeint getCookTimeTotal(int index)
index
- void setCookTimeTotal(int index, int cookTimeTotal)
index
- cookTimeTotal
- Cook time totalCopyright © 2019. All rights reserved.