void Parse(Stream s) { var br = new BinaryReader(s); this.commodity = CatalogTagRegistry.FetchTag(br.ReadUInt16()); this.amount = br.ReadInt32(); }
public Flag(int apiVersion, EventHandler handler) : base(apiVersion, handler) { var category = CatalogTagRegistry.FetchCategory(0); var value = CatalogTagRegistry.FetchTag(0); this.compoundTag = new CompoundTag { Category = category, Value = value }; }
public Flag(int apiVersion, EventHandler handler, Stream s) : base(apiVersion, handler) { var reader = new BinaryReader(s); var category = CatalogTagRegistry.FetchCategory(reader.ReadUInt16()); var value = CatalogTagRegistry.FetchTag(reader.ReadUInt32()); this.compoundTag = new CompoundTag { Category = category, Value = value }; }
void Parse(Stream s) { var br = new BinaryReader(s); this.tag = CatalogTagRegistry.FetchTag(br.ReadUInt32()); }
public CatalogTag(int apiVersion, EventHandler handler, uint tagValue) : base(apiVersion, handler) { this.tag = CatalogTagRegistry.FetchTag(tagValue); }