mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 02:20:01 +03:00
91 lines
3.8 KiB
Diff
91 lines
3.8 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockStone.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockStone.java
|
|
@@ -19,38 +19,38 @@
|
|
|
|
public class BlockStone extends Block
|
|
{
|
|
- public static final PropertyEnum<BlockStone.EnumType> VARIANT = PropertyEnum.<BlockStone.EnumType>create("variant", BlockStone.EnumType.class);
|
|
+ public static final PropertyEnum<EnumType> VARIANT = PropertyEnum.<EnumType>create("variant", EnumType.class);
|
|
|
|
public BlockStone()
|
|
{
|
|
super(Material.ROCK);
|
|
- this.setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, BlockStone.EnumType.STONE));
|
|
+ this.setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, EnumType.STONE));
|
|
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
|
}
|
|
|
|
public String getLocalizedName()
|
|
{
|
|
- return I18n.translateToLocal(this.getUnlocalizedName() + "." + BlockStone.EnumType.STONE.getUnlocalizedName() + ".name");
|
|
+ return I18n.translateToLocal(this.getUnlocalizedName() + "." + EnumType.STONE.getUnlocalizedName() + ".name");
|
|
}
|
|
|
|
public MapColor getMapColor(IBlockState state, IBlockAccess worldIn, BlockPos pos)
|
|
{
|
|
- return ((BlockStone.EnumType)state.getValue(VARIANT)).getMapColor();
|
|
+ return ((EnumType)state.getValue(VARIANT)).getMapColor();
|
|
}
|
|
|
|
public Item getItemDropped(IBlockState state, Random rand, int fortune)
|
|
{
|
|
- return state.getValue(VARIANT) == BlockStone.EnumType.STONE ? Item.getItemFromBlock(Blocks.COBBLESTONE) : Item.getItemFromBlock(Blocks.STONE);
|
|
+ return state.getValue(VARIANT) == EnumType.STONE ? Item.getItemFromBlock(Blocks.COBBLESTONE) : Item.getItemFromBlock(Blocks.STONE);
|
|
}
|
|
|
|
public int damageDropped(IBlockState state)
|
|
{
|
|
- return ((BlockStone.EnumType)state.getValue(VARIANT)).getMetadata();
|
|
+ return ((EnumType)state.getValue(VARIANT)).getMetadata();
|
|
}
|
|
|
|
public void getSubBlocks(CreativeTabs itemIn, NonNullList<ItemStack> items)
|
|
{
|
|
- for (BlockStone.EnumType blockstone$enumtype : BlockStone.EnumType.values())
|
|
+ for (EnumType blockstone$enumtype : EnumType.values())
|
|
{
|
|
items.add(new ItemStack(this, 1, blockstone$enumtype.getMetadata()));
|
|
}
|
|
@@ -58,12 +58,12 @@
|
|
|
|
public IBlockState getStateFromMeta(int meta)
|
|
{
|
|
- return this.getDefaultState().withProperty(VARIANT, BlockStone.EnumType.byMetadata(meta));
|
|
+ return this.getDefaultState().withProperty(VARIANT, EnumType.byMetadata(meta));
|
|
}
|
|
|
|
public int getMetaFromState(IBlockState state)
|
|
{
|
|
- return ((BlockStone.EnumType)state.getValue(VARIANT)).getMetadata();
|
|
+ return ((EnumType)state.getValue(VARIANT)).getMetadata();
|
|
}
|
|
|
|
protected BlockStateContainer createBlockState()
|
|
@@ -81,7 +81,7 @@
|
|
ANDESITE(5, MapColor.STONE, "andesite", true),
|
|
ANDESITE_SMOOTH(6, MapColor.STONE, "smooth_andesite", "andesiteSmooth", false);
|
|
|
|
- private static final BlockStone.EnumType[] META_LOOKUP = new BlockStone.EnumType[values().length];
|
|
+ private static final EnumType[] META_LOOKUP = new EnumType[values().length];
|
|
private final int meta;
|
|
private final String name;
|
|
private final String unlocalizedName;
|
|
@@ -117,7 +117,7 @@
|
|
return this.name;
|
|
}
|
|
|
|
- public static BlockStone.EnumType byMetadata(int meta)
|
|
+ public static EnumType byMetadata(int meta)
|
|
{
|
|
if (meta < 0 || meta >= META_LOOKUP.length)
|
|
{
|
|
@@ -144,7 +144,7 @@
|
|
|
|
static
|
|
{
|
|
- for (BlockStone.EnumType blockstone$enumtype : values())
|
|
+ for (EnumType blockstone$enumtype : values())
|
|
{
|
|
META_LOOKUP[blockstone$enumtype.getMetadata()] = blockstone$enumtype;
|
|
}
|