package net.minecraft.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.IStringSerializable;
public class BlockSandStone extends Block
{
public static final PropertyEnum field_176297_a = PropertyEnum.create("type", BlockSandStone.EnumType.class);
private static final String __OBFID = "CL_00000304";
public BlockSandStone()
{
super(Material.rock);
this.setDefaultState(this.blockState.getBaseState().withProperty(field_176297_a, BlockSandStone.EnumType.DEFAULT));
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* Get the damage value that this Block should drop
*/
public int damageDropped(IBlockState state)
{
return ((BlockSandStone.EnumType)state.getValue(field_176297_a)).func_176675_a();
}
/**
* Convert the given metadata into a BlockState for this Block
*/
public IBlockState getStateFromMeta(int meta)
{
return this.getDefaultState().withProperty(field_176297_a, BlockSandStone.EnumType.func_176673_a(meta));
}
/**
* Convert the BlockState into the correct metadata value
*/
public int getMetaFromState(IBlockState state)
{
return ((BlockSandStone.EnumType)state.getValue(field_176297_a)).func_176675_a();
}
protected BlockState createBlockState()
{
return new BlockState(this, new IProperty[] {field_176297_a});
}
public static enum EnumType implements IStringSerializable
{
DEFAULT("DEFAULT", 0, 0, "sandstone", "default"),
CHISELED("CHISELED", 1, 1, "chiseled_sandstone", "chiseled"),
SMOOTH("SMOOTH", 2, 2, "smooth_sandstone", "smooth");
private static final BlockSandStone.EnumType[] field_176679_d = new BlockSandStone.EnumType[values().length];
private final int field_176680_e;
private final String field_176677_f;
private final String field_176678_g;
private static final BlockSandStone.EnumType[] $VALUES = new BlockSandStone.EnumType[]{DEFAULT, CHISELED, SMOOTH};
private static final String __OBFID = "CL_00002068";
private EnumType(String p_i45686_1_, int p_i45686_2_, int p_i45686_3_, String p_i45686_4_, String p_i45686_5_)
{
this.field_176680_e = p_i45686_3_;
this.field_176677_f = p_i45686_4_;
this.field_176678_g = p_i45686_5_;
}
public int func_176675_a()
{
return this.field_176680_e;
}
public String toString()
{
return this.field_176677_f;
}
public static BlockSandStone.EnumType func_176673_a(int p_176673_0_)
{
if (p_176673_0_ < 0 || p_176673_0_ >= field_176679_d.length)
{
p_176673_0_ = 0;
}
return field_176679_d[p_176673_0_];
}
public String getName()
{
return this.field_176677_f;
}
public String func_176676_c()
{
return this.field_176678_g;
}
static {
BlockSandStone.EnumType[] var0 = values();
int var1 = var0.length;
for (int var2 = 0; var2 < var1; ++var2)
{
BlockSandStone.EnumType var3 = var0[var2];
field_176679_d[var3.func_176675_a()] = var3;
}
}
}
}