mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package com.hbm.blocks.generic;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.util.AxisAlignedBB;
|
|
import net.minecraft.util.DamageSource;
|
|
import net.minecraft.world.World;
|
|
|
|
public class BarbedWire extends Block {
|
|
|
|
public BarbedWire(Material mat)
|
|
{
|
|
super(mat);
|
|
}
|
|
|
|
public void onEntityCollidedWithBlock(World p_149670_1_, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity p_149670_5_)
|
|
{
|
|
p_149670_5_.setInWeb();
|
|
p_149670_5_.attackEntityFrom(DamageSource.cactus, 2.0F);
|
|
}
|
|
|
|
public boolean isOpaqueCube()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public int getRenderType()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public boolean renderAsNormalBlock()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
}
|