cn.nukkit.block.BlockClay 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.ItemClay;
import cn.nukkit.item.ItemTool;
import cn.nukkit.utils.BlockColor;
/**
* @author Nukkit Project Team
*/
public class BlockClay extends BlockSolid {
public BlockClay() {
}
@Override
public double getHardness() {
return 0.6;
}
@Override
public double getResistance() {
return 3;
}
@Override
public int getToolType() {
return ItemTool.TYPE_SHOVEL;
}
@Override
public int getId() {
return CLAY_BLOCK;
}
@Override
public String getName() {
return "Clay Block";
}
@Override
public Item[] getDrops(Item item) {
return new Item[]{
new ItemClay(0, 4)
};
}
@Override
public BlockColor getColor() {
return BlockColor.CLAY_BLOCK_COLOR;
}
@Override
public boolean canSilkTouch() {
return true;
}
}