cn.nukkit.blockentity.BlockEntitySmoker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.blockentity;
import cn.nukkit.block.Block;
import cn.nukkit.inventory.InventoryType;
import cn.nukkit.inventory.SmeltingRecipe;
import cn.nukkit.item.Item;
import cn.nukkit.level.format.FullChunk;
import cn.nukkit.nbt.tag.CompoundTag;
public class BlockEntitySmoker extends BlockEntityFurnace {
public BlockEntitySmoker(FullChunk chunk, CompoundTag nbt) {
super(chunk, nbt);
}
@Override
protected String getFurnaceName() {
return "Smoker";
}
@Override
protected String getClientName() {
return SMOKER;
}
@Override
protected int getIdleBlockId() {
return Block.SMOKER;
}
@Override
protected int getBurningBlockId() {
return Block.LIT_SMOKER;
}
@Override
protected InventoryType getInventoryType() {
return InventoryType.SMOKER;
}
@Override
protected SmeltingRecipe matchRecipe(Item raw) {
return this.server.getCraftingManager().matchSmokerRecipe(raw);
}
@Override
protected int getSpeedMultiplier() {
return 2;
}
}