public void ReadFromStream(IPacketCodec content) { EntityId = content.ReadVarInt(); Type = content.ReadVarIntEnum <InteractType>(); if (Type == InteractType.InteractAt) { Target = content.ReadVector3(); } if (Type == InteractType.Interact || Type == InteractType.InteractAt) { Hand = content.ReadVarIntEnum <Hand>(); } Sneaking = content.ReadBoolean(); }