◆ NBTData()
essentials.Prefabs.Interop.NBTData.NBTData |
( |
| ) |
|
|
protected |
◆ Get< T >() [1/2]
T essentials.Prefabs.Interop.NBTData.Get< T > |
( |
string |
tagName | ) |
|
Attribute: tagName
;
20 return (T)_data[tagName];
◆ Get< T >() [2/2]
T essentials.Prefabs.Interop.NBTData.Get< T > |
( |
params string [] |
tags | ) |
|
Attribute: tags[i]
as NBTData;
Attribute: tags[tags.Length-1]
;
26 for (
int i=0; i<tags.Length-1; ++i)
28 curr = curr._data[tags[i]] as
NBTData;
30 return (T)curr._data[tags[tags.Length-1]];
NBTData()
Definition: NBTData.cs:14
◆ Load() [1/2]
static NBTData essentials.Prefabs.Interop.NBTData.Load |
( |
Stream |
stream | ) |
|
|
static |
35 return Load(
new BinaryReader(stream));
static NBTData Load(Stream stream)
Definition: NBTData.cs:33
◆ Load() [2/2]
static NBTData essentials.Prefabs.Interop.NBTData.Load |
( |
BinaryReader |
reader | ) |
|
|
static |
Attribute: name
= LoadCompound(reader);
40 byte tagId = reader.ReadByte();
42 throw new Exception(
"Expected compound root tag");
44 short nameLen = reader.ReadInt16BE();
45 string name =
new string(reader.ReadChars(nameLen));
48 root._data[name] = LoadCompound(reader);
NBTData()
Definition: NBTData.cs:14
The documentation for this class was generated from the following file: