TrueCraft/TrueCraft.API/Logic/IItemProvider.cs
2015-09-30 18:29:07 -04:00

18 lines
642 B
C#

using System;
using TrueCraft.API.World;
using TrueCraft.API.Networking;
using TrueCraft.API.Entities;
namespace TrueCraft.API.Logic
{
public interface IItemProvider
{
short ID { get; }
sbyte MaximumStack { get; }
string DisplayName { get; }
void ItemUsedOnNothing(ItemStack item, IWorld world, IRemoteClient user);
void ItemUsedOnEntity(ItemStack item, IEntity usedOn, IWorld world, IRemoteClient user);
void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user);
Tuple<int, int> GetIconTexture(byte metadata);
}
}