@Override
public EntityInteractionMessage decode(ChannelBuffer buffer) throws IOException {
int id = buffer.readInt();
int target = buffer.readInt();
boolean punching = buffer.readByte() != 0;
return new EntityInteractionMessage(id, target, punching);
}