TrueCraft/TrueCraft.API/Logic/IBlockRepository.cs
2015-01-26 16:40:32 -07:00

21 lines
691 B
C#

using System;
namespace TrueCraft.API.Logic
{
/// <summary>
/// Providers block providers for a server.
/// </summary>
public interface IBlockRepository
{
/// <summary>
/// Gets this repository's block provider for the specified block ID. This may return null
/// if the block ID in question has no corresponding block provider.
/// </summary>
IBlockProvider GetBlockProvider(byte id);
/// <summary>
/// Registers a new block provider. This overrides any existing block providers that use the
/// same block ID.
/// </summary>
void RegisterBlockProvider(IBlockProvider provider);
}
}