cn.nukkit.block.BlockDoorWood 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.block;
import cn.nukkit.item.Item;
import cn.nukkit.item.ItemDoorWood;
import cn.nukkit.item.ItemTool;
import cn.nukkit.utils.BlockColor;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class BlockDoorWood extends BlockDoor {
public BlockDoorWood() {
this(0);
}
public BlockDoorWood(int meta) {
super(meta);
}
@Override
public String getName() {
return "Wood Door Block";
}
@Override
public int getId() {
return WOOD_DOOR_BLOCK;
}
@Override
public double getHardness() {
return 3;
}
@Override
public double getResistance() {
return 15;
}
@Override
public int getToolType() {
return ItemTool.TYPE_AXE;
}
@Override
public Item toItem() {
return new ItemDoorWood();
}
@Override
public BlockColor getColor() {
return BlockColor.WOOD_BLOCK_COLOR;
}
}