BlockState
, Metadatable
, PersistentDataHolder
, TileState
public interface Campfire extends TileState
Modifier and Type | Method | Description |
---|---|---|
int |
getCookTime(int index) |
Get cook time.
|
int |
getCookTimeTotal(int index) |
Get cook time total.
|
ItemStack |
getItem(int index) |
|
int |
getSize() |
|
void |
setCookTime(int index,
int cookTime) |
Set cook time.
|
void |
setCookTimeTotal(int index,
int cookTimeTotal) |
Set cook time.
|
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
- item slot indexvoid setCookTime(int index, int cookTime)
index
- item slot indexcookTime
- Cook timeint getCookTimeTotal(int index)
index
- item slot indexvoid setCookTimeTotal(int index, int cookTimeTotal)
index
- item slot indexcookTimeTotal
- Cook time totalCopyright © 2019. All rights reserved.