@Override
public PlayerExperienceMessage decode(ByteBuf buffer) throws IOException {
float barValue = buffer.readFloat();
short level = buffer.readShort();
short totalExp = buffer.readShort();
return new PlayerExperienceMessage(barValue, level, totalExp);
}