cn.nukkit.block.BlockPumpkinLit 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.Player;
import cn.nukkit.item.Item;
import javax.annotation.Nonnull;
/**
* @author xtypr
* @since 2015/12/8
*/
public class BlockPumpkinLit extends BlockPumpkin {
public BlockPumpkinLit() {
this(0);
}
public BlockPumpkinLit(int meta) {
super(meta);
}
@Override
public String getName() {
return "Jack o'Lantern";
}
@Override
public int getId() {
return LIT_PUMPKIN;
}
@Override
public int getLightLevel() {
return 15;
}
@Override
public boolean canBeActivated() {
return false;
}
@Override
public boolean onActivate(@Nonnull Item item, Player player) {
return false;
}
}