INetStreamReader interface
public interface INetStreamReader : INetStream, IDisposable, IAsyncDisposable
In Obsidian.API.
Properties
bool CanRead { get; }Methods
VectorF ReadAbsoluteFloatPositionF();Angle ReadAngle();ArgumentSignature ReadArgumentSignature();AttributeModifier ReadAttributeModifier();BitSet ReadBitSet();bool ReadBoolean();byte ReadByte();byte[] ReadByteArray();byte[] ReadByteArray(int maxLength);ChatMessage ReadChat();DataComponent ReadDataComponent(DataComponentType type);DateTimeOffset ReadDateTimeOffset();double ReadDouble();Enchantment ReadEnchantment();BitSet ReadFixedBitSet(int size);Angle ReadFloatAngle();Guid ReadGuid();IHashedItemStack ReadHashedItemStack();ReadIdSet()
IdSet ReadIdSet();Reads an ID set without translating its ids.
ReadIdSet(string)
IdSet ReadIdSet(string registry);Reads an ID set of the registry registry (see INetStreamReader.ReadRegistryId).
int ReadInt();TEnum ReadInt<TEnum>() where TEnum : Enum;ItemStack ReadItemStack();ItemStack[] ReadItemStackList();ReadItemStackTemplate()
ItemStack ReadItemStackTemplate();Reads a nonempty item template (item ID, count, component patch), used by nested components.
TValue[] ReadLengthPrefixedArray<TValue>(Func<TValue> read);long ReadLong();long[] ReadLongArray();NbtCompound ReadNbtCompound();TValue ReadOptional<TValue>() where TValue : INetworkSerializable<TValue>;bool? ReadOptionalBoolean();float? ReadOptionalFloat();Guid? ReadOptionalGuid();int? ReadOptionalInt();NbtCompound ReadOptionalNbtCompound();string ReadOptionalString();Vector ReadPosition();VectorF ReadPositionF();PotionEffectData ReadPotionEffectData();ReadRegistryHolder(string)
int? ReadRegistryHolder(string registry);Reads a holder of the registry registry like vanilla's ByteBufCodecs.holder: its id (see INetStreamReader.ReadRegistryId), or null for a value written inline, which the caller reads next.
ReadRegistryId(string)
int ReadRegistryId(string registry);Reads an id of the built-in registry registry (e.g. minecraft:block), in this process's numbering where the connection numbers the registry differently. The default implementation, for streams that don't translate ids, reads it as it is.
byte[] ReadRemainingBytes(int maxLength);ItemStack ReadRequiredItemStack();short ReadShort();sbyte ReadSignedByte();TEnum ReadSignedByte<TEnum>() where TEnum : Enum;SignedMessage ReadSignedMessage();float ReadSingle();SoundEvent ReadSoundEvent();SoundPosition ReadSoundPosition();string ReadString(int maxLength = 32767);byte[] ReadUInt8Array(int length = 0);TEnum ReadUnsignedByte<TEnum>() where TEnum : Enum;ulong ReadUnsignedLong();ushort ReadUnsignedShort();ItemStack ReadUntrustedItemStack();int ReadVarInt();TEnum ReadVarInt<TEnum>() where TEnum : Enum;int[] ReadVarIntArray();long ReadVarLong();Velocity ReadVelocity();