cn.nukkit.block.BlockGlass 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.utils.BlockColor;
/**
* @author Angelic47 (Nukkit Project)
*/
public class BlockGlass extends BlockTransparent {
public BlockGlass() {
}
@Override
public int getId() {
return GLASS;
}
@Override
public String getName() {
return "Glass";
}
@Override
public double getResistance() {
return 1.5;
}
@Override
public double getHardness() {
return 0.3;
}
@Override
public Item[] getDrops(Item item) {
return Item.EMPTY_ARRAY;
}
@Override
public boolean canSilkTouch() {
return true;
}
@Override
public BlockColor getColor() {
return BlockColor.AIR_BLOCK_COLOR;
}
}