public override void Read(byte[] array) { McByte.TryParse(ref array, out WindowID); McShort.TryParse(ref array, out Slot); SlotData = new Slot(); SlotData.Parse(ref array); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McShort.TryParse(ref array, out DeltaX); McShort.TryParse(ref array, out DeltaY); McShort.TryParse(ref array, out DeltaZ); McBoolean.TryParse(ref array, out OnGround); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityId); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McShort.TryParse(ref array, out Count); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityId); McShort.TryParse(ref array, out DeltaX); McShort.TryParse(ref array, out DeltaY); McShort.TryParse(ref array, out DeltaZ); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); McBoolean.TryParse(ref array, out OnGround); }
public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out WindowID); McShort.TryParse(ref array, out Slot); McUnsignedByte.TryParse(ref array, out Button); McShort.TryParse(ref array, out ActionNumber); McVarint.TryParse(ref array, out Mode); Slot slot = new Slot(); slot.Parse(ref array); }
public Slot[] SlotData; //Field Type - Array of Slot public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out WindowID); McShort.TryParse(ref array, out Count); SlotData = new Slot[Count]; for (int i = 0; i < Count; i++) { SlotData[i] = new Slot(); SlotData[i].Parse(ref array); } }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUUID.TryParse(ref array, out EntityUUID); McVarint.TryParse(ref array, out Type); McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); McUnsignedByte.TryParse(ref array, out HeadPitch); McShort.TryParse(ref array, out VelocityX); McShort.TryParse(ref array, out VelocityY); McShort.TryParse(ref array, out VelocityZ); }
public override void Read(byte[] array) { McShort.TryParse(ref array, out Slot); }
public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out WindowID); McShort.TryParse(ref array, out ActionNumber); McBoolean.TryParse(ref array, out Accepted); }