Un-obsoleting BlockType and ItemType constants, since I don't actually plan to remove them.

This commit is contained in:
Justin Aquadro 2011-11-09 22:03:21 -05:00
parent d818806411
commit ac41b8e8f4
2 changed files with 2 additions and 5 deletions

View file

@ -7,7 +7,7 @@ namespace Substrate
/// <summary> /// <summary>
/// Provides named id values for known block types. /// Provides named id values for known block types.
/// </summary> /// </summary>
/// <remarks><para>The BlockType constants are obsolete. The preferred method to lookup /// <remarks><para>The preferred method to lookup
/// Minecraft block IDs is to access the ID field of the corresponding static BlockInfo /// Minecraft block IDs is to access the ID field of the corresponding static BlockInfo
/// object in the BlockInfo class.</para> /// object in the BlockInfo class.</para>
/// <para>The static BlockInfo objects can be re-bound to new BlockInfo objects, allowing /// <para>The static BlockInfo objects can be re-bound to new BlockInfo objects, allowing
@ -15,7 +15,6 @@ namespace Substrate
/// in supporting nonstandard worlds, and the ability to future-proof their application against /// in supporting nonstandard worlds, and the ability to future-proof their application against
/// changes to Block IDs, by implementing functionality to import block/ID mappings from an /// changes to Block IDs, by implementing functionality to import block/ID mappings from an
/// external source and rebinding the objects in BlockInfo.</para></remarks> /// external source and rebinding the objects in BlockInfo.</para></remarks>
[Obsolete("Prefer using BlockInfo.Something.ID over BlockType.SOMETHING")]
public static class BlockType public static class BlockType
{ {
public const int AIR = 0; public const int AIR = 0;

View file

@ -7,9 +7,7 @@ namespace Substrate
/// <summary> /// <summary>
/// Provides named id values for known item types. /// Provides named id values for known item types.
/// </summary> /// </summary>
/// <remarks>The BlockType constants are obsolete. See <see cref="BlockType"/> for additional /// <remarks>See <see cref="BlockType"/> for additional information.</remarks>
/// information.</remarks>
[Obsolete("Prefer using ItemInfo.Something.ID over ItemType.SOMETHING")]
public static class ItemType public static class ItemType
{ {
public const int IRON_SHOVEL = 256; public const int IRON_SHOVEL = 256;