public class NukkitFurnaceBlockEntity extends NukkitNameableBlockEntity implements FurnaceBlockEntity
| Modifier and Type | Field and Description |
|---|---|
int |
burnTime |
int |
cookTime |
int |
maxBurnTime |
| Constructor and Description |
|---|
NukkitFurnaceBlockEntity(NukkitFurnaceInventory inventory) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBurnDuration(ItemInstance item) |
ItemInstance |
getResult(ItemInstance ingredient) |
boolean |
isFuel(ItemInstance item) |
boolean |
isIngredient(ItemInstance item) |
getCustomName, getLockgetLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBurnTime, getCookTime, getInventorygetCustomName, getLock, setCustomName, setLockgetLevelpublic int cookTime
public int burnTime
public int maxBurnTime
public NukkitFurnaceBlockEntity(NukkitFurnaceInventory inventory)
public boolean isFuel(@Nullable ItemInstance item)
isFuel in interface FurnaceBlockEntitypublic int getBurnDuration(@Nullable ItemInstance item)
getBurnDuration in interface FurnaceBlockEntitypublic boolean isIngredient(@Nullable ItemInstance item)
isIngredient in interface FurnaceBlockEntitypublic ItemInstance getResult(ItemInstance ingredient)
Copyright © 2017–2019 NukkitX. All rights reserved.