@Override
    public void deserialize(Buffer buf) {
        super.deserialize(buf);
        diceNum = buf.readShort();
        if (diceNum < 0)
            throw new RuntimeException("Forbidden value on diceNum = " + diceNum + ", it doesn't respect the following condition : diceNum < 0");
        diceSide = buf.readShort();
        if (diceSide < 0)
            throw new RuntimeException("Forbidden value on diceSide = " + diceSide + ", it doesn't respect the following condition : diceSide < 0");
        diceConst = buf.readShort();
        if (diceConst < 0)
            throw new RuntimeException("Forbidden value on diceConst = " + diceConst + ", it doesn't respect the following condition : diceConst < 0");
    }