Java 类org.bukkit.material.Cake 实例源码

项目:modules-extra    文件:UseCake.java   
@Override
public Text translateAction(User user)
{
    int piecesLeft = this.newBlock.as(Cake.class).getSlicesRemaining();
    if (piecesLeft == 0)
    {
        return user.getTranslation(POSITIVE, "The cake is a lie! Ask {user} he knows it!", this.player.name);
    }
    else
    {
        return user.getTranslation(POSITIVE, "{user} ate a piece of cake", this.player.name);
    }
}
项目:BedrockAPI    文件:Cake.java   
public Cake() {
}
项目:BedrockAPI    文件:Cake.java   
@Deprecated public Cake(int type) {
}
项目:BedrockAPI    文件:Cake.java   
public Cake(Material type) {
}
项目:BedrockAPI    文件:Cake.java   
@Deprecated public Cake(int type, byte data) {
}
项目:BedrockAPI    文件:Cake.java   
@Deprecated public Cake(Material type, byte data) {
}
项目:BedrockAPI    文件:Cake.java   
public Cake clone() {
    return null;
}