/// <summary> /// Read Forge VarShort field /// </summary> /// <param name="packetData">Packet data to read from</param> /// <returns>Length from packet data</returns> public int ReadNextVarShort(List <byte> packetData) { if (ForgeEnabled()) { // Forge special VarShort field. return((int)dataTypes.ReadNextVarShort(packetData)); } else { // Vanilla regular Short field return((int)dataTypes.ReadNextShort(packetData)); } }