f687a22531
Because I am really, really out of patience
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using TrueCraft.API;
|
|
using TrueCraft.API.Logic;
|
|
|
|
namespace TrueCraft.Core.Logic.Blocks
|
|
{
|
|
public class ButtonBlock : BlockProvider, ICraftingRecipe
|
|
{
|
|
public static readonly byte BlockID = 0x4D;
|
|
|
|
public override byte ID { get { return 0x4D; } }
|
|
|
|
public override double BlastResistance { get { return 2.5; } }
|
|
|
|
public override double Hardness { get { return 0.5; } }
|
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
public override bool Opaque { get { return false; } }
|
|
|
|
public override string DisplayName { get { return "Button"; } }
|
|
|
|
public ItemStack[,] Pattern
|
|
{
|
|
get
|
|
{
|
|
return new[,]
|
|
{
|
|
{new ItemStack(StoneBlock.BlockID)},
|
|
{new ItemStack(StoneBlock.BlockID)}
|
|
};
|
|
}
|
|
}
|
|
|
|
public ItemStack Output
|
|
{
|
|
get { return new ItemStack(BlockID); }
|
|
}
|
|
|
|
public bool SignificantMetadata
|
|
{
|
|
get { return false; }
|
|
}
|
|
}
|
|
} |