![JAR search and dependency download from the Maven repository](/logo.png)
cn.nukkit.block.BlockMonsterEgg 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;
public class BlockMonsterEgg extends BlockSolidMeta {
public static final int STONE = 0;
public static final int COBBLESTONE = 1;
public static final int STONE_BRICK = 2;
public static final int MOSSY_BRICK = 3;
public static final int CRACKED_BRICK = 4;
public static final int CHISELED_BRICK = 5;
private static final String[] NAMES = new String[]{
"Stone",
"Cobblestone",
"Stone Brick",
"Mossy Stone Brick",
"Cracked Stone Brick",
"Chiseled Stone Brick"
};
public BlockMonsterEgg() {
this(0);
}
public BlockMonsterEgg(int meta) {
super(meta);
}
@Override
public int getId() {
return MONSTER_EGG;
}
@Override
public double getHardness() {
return 0.75;
}
@Override
public double getResistance() {
return 3.75;
}
@Override
public String getName() {
return NAMES[this.getDamage() > 5 ? 0 : this.getDamage()] + " Monster Egg";
}
@Override
public Item[] getDrops(Item item) {
return Item.EMPTY_ARRAY;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy