package pixlepix.auracascade.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import pixlepix.auracascade.registry.ITTinkererBlock; import pixlepix.auracascade.registry.ThaumicTinkererRecipe; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Created by pixlepix on 12/20/14. */ public class FairyTorch extends Block implements ITTinkererBlock { public final String name = "fairyTorch"; private static final AxisAlignedBB AABB = new AxisAlignedBB(0, 0, 0, 0, 0, 0); public FairyTorch() { super(Material.GLASS); setTickRandomly(true); setLightLevel(1F); } @Override public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } @Override public boolean isReplaceable(IBlockAccess worldIn, BlockPos pos) { return true; } @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public boolean isAir(IBlockState state, IBlockAccess world, BlockPos pos) { return true; } @Override public int quantityDropped(Random p_149745_1_) { return 0; } @Override public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) { return new ArrayList<ItemStack>(); } @Override public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) { super.updateTick(world, pos, state, rand); if (!world.isRemote) { world.setBlockToAir(pos); } } @Override public ArrayList<Object> getSpecialParameters() { return null; } @Override public String getBlockName() { return name; } @Override public boolean shouldRegister() { return true; } @Override public boolean shouldDisplayInTab() { return false; } @Override public Class<? extends ItemBlock> getItemBlock() { return null; } @Override public Class<? extends TileEntity> getTileEntity() { return null; } @Override public ThaumicTinkererRecipe getRecipeItem() { return null; } @Override public int getCreativeTabPriority() { return 0; } @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) { return AABB; } }