@Override
    public void deserialize(Buffer buf) {
        mountUid = buf.readDouble();
        if (mountUid < 0)
            throw new RuntimeException("Forbidden value on mountUid = " + mountUid + ", it doesn't respect the following condition : mountUid < 0");
        mountLocation = buf.readByte();
        mountFoodUid = buf.readInt();
        if (mountFoodUid < 0)
            throw new RuntimeException("Forbidden value on mountFoodUid = " + mountFoodUid + ", it doesn't respect the following condition : mountFoodUid < 0");
        quantity = buf.readInt();
        if (quantity < 0)
            throw new RuntimeException("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0");
    }