@Override public void onEntityCollidedWithBlock( World par1World, BlockPos pos, IBlockState state, Entity par5Entity) { super.onEntityCollidedWithBlock(par1World, pos, state, par5Entity); if (par5Entity instanceof EntityLivingBase && !EntityUtil.isEntityCoralium((EntityLivingBase) par5Entity) && ((EntityLivingBase) par5Entity).getActivePotionEffect(AbyssalCraftAPI.coralium_plague) == null) ((EntityLivingBase) par5Entity) .addPotionEffect(new PotionEffect(AbyssalCraftAPI.coralium_plague, 200)); }
@SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister ir) { super.registerBlockIcons(ir); fluidIcon = ir.registerIcon("academy:phase_liquid"); }