Exposing raw NBT Source property to several INbtObjects

This commit is contained in:
Justin Aquadro 2012-11-04 21:05:28 -05:00
parent 4a24f40d82
commit 9f3312d790
4 changed files with 25 additions and 1 deletions

View file

@ -96,6 +96,14 @@ namespace Substrate
set { _onGround = (byte)(value ? 1 : 0); }
}
/// <summary>
/// Gets the source <see cref="TagNodeCompound"/> used to create this <see cref="Entity"/> if it exists.
/// </summary>
public TagNodeCompound Source
{
get { return _source; }
}
/// <summary>
/// Constructs a new generic <see cref="Entity"/> with default values.
/// </summary>

View file

@ -95,6 +95,14 @@ namespace Substrate
get { return _enchantments; }
}
/// <summary>
/// Gets the source <see cref="TagNodeCompound"/> used to create this <see cref="Item"/> if it exists.
/// </summary>
public TagNodeCompound Source
{
get { return _source; }
}
/// <summary>
/// Gets a <see cref="SchemaNode"/> representing the schema of an item.
/// </summary>

View file

@ -238,6 +238,14 @@ namespace Substrate
set { _hardcore = value ? (byte)1 : (byte)0; }
}
/// <summary>
/// Gets the source <see cref="TagNodeCompound"/> used to create this <see cref="Level"/> if it exists.
/// </summary>
public TagNodeCompound Source
{
get { return _source; }
}
/// <summary>
/// Gets a <see cref="SchemaNode"/> representing the schema of a level.
/// </summary>

View file

@ -65,7 +65,7 @@ namespace Substrate
/// <summary>
/// Gets the source <see cref="TagNodeCompound"/> used to create this <see cref="TileEntity"/> if it exists.
/// </summary>
protected TagNodeCompound Source
public TagNodeCompound Source
{
get { return _source; }
}