2016-07-16 22:48:25 +00:00
|
|
|
package gregtech.common.blocks;
|
|
|
|
|
2016-10-23 09:59:59 +00:00
|
|
|
import com.google.common.collect.ImmutableList;
|
2016-07-16 22:48:25 +00:00
|
|
|
import gregtech.api.enums.Materials;
|
|
|
|
import gregtech.api.enums.OrePrefixes;
|
|
|
|
import gregtech.api.util.GT_LanguageManager;
|
|
|
|
import gregtech.api.util.GT_OreDictUnificator;
|
2016-10-02 04:15:33 +00:00
|
|
|
import gregtech.common.render.blocks.IBlockIconProvider;
|
2016-08-10 19:43:37 +00:00
|
|
|
import net.minecraft.block.state.IBlockState;
|
2016-10-23 09:59:59 +00:00
|
|
|
import net.minecraft.client.renderer.block.model.BakedQuad;
|
2016-08-10 19:43:37 +00:00
|
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
2016-07-16 22:48:25 +00:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2016-08-10 19:43:37 +00:00
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
2016-07-16 22:48:25 +00:00
|
|
|
import net.minecraft.world.World;
|
2016-09-15 14:24:35 +00:00
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2016-07-16 22:48:25 +00:00
|
|
|
|
2016-08-10 19:43:37 +00:00
|
|
|
public class GT_Block_Stones extends GT_Block_Stones_Abstract implements IBlockIconProvider {
|
2016-07-16 22:48:25 +00:00
|
|
|
public GT_Block_Stones() {
|
|
|
|
super(GT_Item_Granites.class, "gt.blockstones");
|
|
|
|
setResistance(60.0F);
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Marble");
|
2016-07-21 06:24:42 +00:00
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Marble Cobblestone");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Mossy Marble Cobblestone");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Marble Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Cracked Marble Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Mossy Marble Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Chiseled Marble");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Smooth Marble");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Basalt");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Basalt Cobblestone");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Mossy Basalt Cobblestone");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Basalt Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cracked Basalt Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Mossy Basalt Bricks");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Basalt");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Basalt");
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 0));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 1));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 2));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 3));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 4));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 5));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 6));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Marble, new ItemStack(this, 1, 7));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 8));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 9));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 10));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 11));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 12));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 13));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 14));
|
|
|
|
GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Basalt, new ItemStack(this, 1, 15));
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|
|
|
|
|
2016-08-10 19:43:37 +00:00
|
|
|
@Override
|
|
|
|
public int getHarvestLevel(IBlockState aMeta) {
|
2016-07-22 01:58:39 +00:00
|
|
|
return 2;
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|
|
|
|
|
2016-08-10 19:43:37 +00:00
|
|
|
@Override
|
|
|
|
public float getBlockHardness(IBlockState blockState, World worldIn, BlockPos pos) {
|
|
|
|
return Blocks.STONE.getBlockHardness(blockState, worldIn, pos);
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|
|
|
|
|
2016-08-10 19:43:37 +00:00
|
|
|
@Override
|
2016-09-15 14:24:35 +00:00
|
|
|
@SideOnly(Side.CLIENT)
|
2016-10-23 09:59:59 +00:00
|
|
|
public ImmutableList<BakedQuad> getIcon(EnumFacing aSide, int aMeta) {
|
2016-07-21 06:24:42 +00:00
|
|
|
if ((aMeta >= 0) && (aMeta < 16)) {
|
2016-10-23 09:59:59 +00:00
|
|
|
return gregtech.api.enums.Textures.BlockIcons.STONES[aMeta].getQuads(aSide);
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|
2016-10-23 09:59:59 +00:00
|
|
|
return gregtech.api.enums.Textures.BlockIcons.STONES[0].getQuads(aSide);
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|
2016-08-10 19:43:37 +00:00
|
|
|
|
2016-07-16 22:48:25 +00:00
|
|
|
}
|