cn.nukkit.block.BlockStemPumpkin 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.api.PowerNukkitDifference;
import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;
import cn.nukkit.item.ItemID;
import cn.nukkit.math.BlockFace;
import cn.nukkit.utils.Faceable;
/**
* @author Pub4Game
* @since 15.01.2016
*
* @apiNote Implements {@link Faceable} only on PowerNukkit since 1.3.0.0-PN
* and extends {@link BlockCropsStem} instead of {@link BlockCrops} only in PowerNukkit since 1.4.0.0-PN
*/
@PowerNukkitDifference(since = "1.3.0.0-PN", info = "Implements Faceable only in PowerNukkit")
@PowerNukkitDifference(since = "1.3.0.0-PN", info = "Will bind to the pumpkin by the server-side")
@PowerNukkitDifference(since = "1.4.0.0-PN", info = "Extends BlockCropsStem instead of BlockCrops only in PowerNukkit")
public class BlockStemPumpkin extends BlockCropsStem implements Faceable {
public BlockStemPumpkin() {
this(0);
}
public BlockStemPumpkin(int meta) {
super(meta);
}
@Override
public int getId() {
return PUMPKIN_STEM;
}
@Since("1.4.0.0-PN")
@PowerNukkitOnly
@Override
public int getFruitId() {
return PUMPKIN;
}
@Since("1.4.0.0-PN")
@PowerNukkitOnly
@Override
public int getSeedsId() {
return ItemID.PUMPKIN_SEEDS;
}
@Override
public String getName() {
return "Pumpkin Stem";
}
@PowerNukkitOnly("Implements Faceable only on PowerNukkit since 1.3.0.0-PN")
@Since("1.3.0.0-PN")
@Override
public BlockFace getBlockFace() {
return super.getBlockFace();
}
@Override
@PowerNukkitOnly
@Since("1.3.0.0-PN")
public void setBlockFace(BlockFace face) {
super.setBlockFace(face);
}
}