package net.minecraft.block; import java.util.Random; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.World; public class BlockWeb extends Block { private static final String __OBFID = "CL_00000333"; public BlockWeb() { super(Material.web); this.setCreativeTab(CreativeTabs.tabDecorations); } public void onEntityCollidedWithBlock(World worldIn, int x, int y, int z, Entity entityIn) { entityIn.setInWeb(); } public boolean isOpaqueCube() { return false; } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) { return null; } /** * The type of render function that is called for this block */ public int getRenderType() { return 1; } public boolean renderAsNormalBlock() { return false; } public Item getItemDropped(int meta, Random random, int fortune) { return Items.string; } protected boolean canSilkHarvest() { return true; } }