@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); } }
public Cake() { }
@Deprecated public Cake(int type) { }
public Cake(Material type) { }
@Deprecated public Cake(int type, byte data) { }
@Deprecated public Cake(Material type, byte data) { }
public Cake clone() { return null; }