BlockWeb: Difference between revisions
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
super(Material.web); |
super(Material.web); |
||
} |
} |
||
public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state) |
|||
{ |
|||
return null; //no solid collisions |
|||
} |
|||
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) |
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) |
Revision as of 15:22, 28 March 2020
package net.minecraft.block;
public class BlockWeb extends Block
{
public BlockWeb()
{
super(Material.web);
}
public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state)
{
return null; //no solid collisions
}
public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
{
entityIn.setInWeb();
}
}