public class BrewingStandBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.BrewingStand
| Modifier and Type | Field and Description |
|---|---|
short |
cookTime |
short |
fuelAmount |
short |
fuelTotal |
static List<org.cloudburstmc.api.item.ItemType> |
ingredients |
protected CloudBrewingInventory |
inventory |
static short |
MAX_COOK_TIME |
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
BrewingStandBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIngredient(org.cloudburstmc.api.item.ItemStack ingredient) |
void |
close() |
short |
getCookTime() |
short |
getFuelAmount() |
short |
getFuelTotal() |
int[] |
getHopperPullSlots() |
int[] |
getHopperPushSlots(org.cloudburstmc.api.util.Direction direction,
org.cloudburstmc.api.item.ItemStack item) |
CloudBrewingInventory |
getInventory() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onBreak() |
boolean |
onUpdate() |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
protected void |
saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
NBT data that is specifically sent to the client
|
protected void |
sendBrewTime() |
void |
sendFuel() |
void |
setCookTime(int cookTime) |
void |
setFuelAmount(int fuel) |
void |
setFuelTotal(short fuelTotal) |
void |
updateBlock() |
getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic static final short MAX_COOK_TIME
public static final List<org.cloudburstmc.api.item.ItemType> ingredients
protected final CloudBrewingInventory inventory
public short cookTime
public short fuelTotal
public short fuelAmount
public BrewingStandBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntityprotected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
BaseBlockEntitysaveClientData in class BaseBlockEntitytag - tag to write data topublic void close()
close in interface org.cloudburstmc.api.blockentity.BlockEntityclose in class BaseBlockEntitypublic void onBreak()
onBreak in interface org.cloudburstmc.api.blockentity.BlockEntityonBreak in class BaseBlockEntitypublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic CloudBrewingInventory getInventory()
getInventory in interface org.cloudburstmc.api.blockentity.BrewingStandgetInventory in interface org.cloudburstmc.api.inventory.InventoryHolderprotected boolean checkIngredient(org.cloudburstmc.api.item.ItemStack ingredient)
public short getCookTime()
getCookTime in interface org.cloudburstmc.api.blockentity.BrewingStandpublic void setCookTime(int cookTime)
setCookTime in interface org.cloudburstmc.api.blockentity.BrewingStandpublic short getFuelTotal()
public void setFuelTotal(short fuelTotal)
public boolean onUpdate()
onUpdate in interface org.cloudburstmc.api.blockentity.BlockEntityonUpdate in class BaseBlockEntitypublic void sendFuel()
protected void sendBrewTime()
public void updateBlock()
public short getFuelAmount()
getFuelAmount in interface org.cloudburstmc.api.blockentity.BrewingStandpublic void setFuelAmount(int fuel)
setFuelAmount in interface org.cloudburstmc.api.blockentity.BrewingStandpublic int[] getHopperPushSlots(org.cloudburstmc.api.util.Direction direction,
org.cloudburstmc.api.item.ItemStack item)
getHopperPushSlots in interface org.cloudburstmc.api.blockentity.ContainerBlockEntitypublic int[] getHopperPullSlots()
getHopperPullSlots in interface org.cloudburstmc.api.blockentity.ContainerBlockEntitypublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.