public NbtCompoundTag NBTData; //NBT Tag public override void Read(byte[] array) { Location = new Position(); Location.Read(ref array); McUnsignedByte.TryParse(ref array, out Action); McNbtCompoundTag.TryParse(ref array, out NBTData); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); Location = new Position(); Location.Read(ref array); McUnsignedByte.TryParse(ref array, out DestroyStage); }
public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUnsignedByte.TryParse(ref array, out Yaw); McUnsignedByte.TryParse(ref array, out Pitch); McBoolean.TryParse(ref array, out OnGround); }
public int BlockType; //Varint public override void Read(byte[] array) { Location = new Position(); Location.Read(ref array); McUnsignedByte.TryParse(ref array, out ActionID); McUnsignedByte.TryParse(ref array, out ActionParam); McVarint.TryParse(ref array, out BlockType); }
public byte Direction; //Byte Enum public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUUID.TryParse(ref array, out EntityUUID); McVarint.TryParse(ref array, out Motive); Location = new Position(); Location.Read(ref array); McUnsignedByte.TryParse(ref array, out Direction); }
public byte Pitch; //Angle public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUUID.TryParse(ref array, out PlayerUUID); 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); }
public int TeleportID; // Varint public override void Read(byte[] array) { McDouble.TryParse(ref array, out X); McDouble.TryParse(ref array, out Y); McDouble.TryParse(ref array, out Z); McFloat.TryParse(ref array, out Yaw); McFloat.TryParse(ref array, out Pitch); McUnsignedByte.TryParse(ref array, out Flags); McVarint.TryParse(ref array, out TeleportID); }
public void Parse(ref byte[] array) { McBoolean.TryParse(ref array, out Present); if (Present) { McVarint.TryParse(ref array, out ItemId); McUnsignedByte.TryParse(ref array, out ItemCount); McNbtCompoundTag.TryParse(ref array, out NBT); } }
public MainHands MainHand; //Varint Enum public override void Read(byte[] array) { McString.TryParse(ref array, out Locale); McUnsignedByte.TryParse(ref array, out ViewDistance); McVarint.TryParse(ref array, out int chatMode); ChatMode = (ChatModes)chatMode; McBoolean.TryParse(ref array, out ChatColors); McUnsignedByte.TryParse(ref array, out DisplayedSkinParts); McVarint.TryParse(ref array, out int mainHand); MainHand = (MainHands)mainHand; }
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 bool CopyMetadata; //* public override void Read(byte[] array) { McNbtCompoundTag.TryParse(ref array, out Dimension); McString.TryParse(ref array, out WorldName); McLong.TryParse(ref array, out HashedSeed); McUnsignedByte.TryParse(ref array, out Gamemode); McUnsignedByte.TryParse(ref array, out PreviousGamemode); McBoolean.TryParse(ref array, out IsDebug); McBoolean.TryParse(ref array, out IsFlat); McBoolean.TryParse(ref array, out CopyMetadata); }
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) { Location = new Position(); Location.Read(ref array); McVarint.TryParse(ref array, out Action); McVarint.TryParse(ref array, out Mode); McString.TryParse(ref array, out Name); McByte.TryParse(ref array, out OffsetX); McByte.TryParse(ref array, out OffsetY); McByte.TryParse(ref array, out OffsetZ); McUnsignedByte.TryParse(ref array, out SizeX); McUnsignedByte.TryParse(ref array, out SizeY); McUnsignedByte.TryParse(ref array, out SizeZ); McVarint.TryParse(ref array, out Mirror); McVarint.TryParse(ref array, out Rotation); McString.TryParse(ref array, out Metadata); McFloat.TryParse(ref array, out Integrity); McVarlong.TryParse(ref array, out Seed); McUnsignedByte.TryParse(ref array, out Flags); }
public int BlockID; //Varint public void Read(ref byte[] array) { McUnsignedByte.TryParse(ref array, out HorizontalPosition); McUnsignedByte.TryParse(ref array, out YCoordinate); McVarint.TryParse(ref array, out BlockID); }
public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out Flags); }
public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out WindowID); McShort.TryParse(ref array, out ActionNumber); McBoolean.TryParse(ref array, out Accepted); }
public byte HeadYaw; //Angle public override void Read(byte[] array) { McVarint.TryParse(ref array, out EntityID); McUnsignedByte.TryParse(ref array, out HeadYaw); }
public byte WindowID; //Unsigned Byte public override void Read(byte[] array) { McUnsignedByte.TryParse(ref array, out WindowID); }