package maxwell_lt.mobblocker.blocks;

import maxwell_lt.mobblocker.MobBlocker;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;

public class BlockAreaProtector extends Block implements ITileEntityProvider {
	
	public BlockAreaProtector() {
        super(Material.ROCK);
        setUnlocalizedName(MobBlocker.MODID + ".areaprotector");
        setRegistryName("areaprotector");
        setHardness(1.5F);
        GameRegistry.register(this);
        GameRegistry.register(new ItemBlock(this), getRegistryName());
        GameRegistry.registerTileEntity(TileEntityAreaProtector.class, MobBlocker.MODID + "_areaprotector");
    }
    
    @SideOnly(Side.CLIENT)
    public void initModel() {
    	ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this),
    			0, new ModelResourceLocation(getRegistryName(), "inventory"));
    }

	@Override
	public TileEntity createNewTileEntity(World worldIn, int meta) {
		return new TileEntityAreaProtector();
	}
}

@@ -65,64 +65,318 @@
 ker.
-MobBlocker;%0Aimport net.minecraft.block.material.Material
+Config;%0Aimport maxwell_lt.mobblocker.MobBlocker;%0Aimport maxwell_lt.mobblocker.TOPInfoProvider;%0Aimport mcjty.theoneprobe.api.IProbeHitData;%0Aimport mcjty.theoneprobe.api.IProbeInfo;%0Aimport mcjty.theoneprobe.api.ProbeMode;%0Aimport net.minecraft.block.material.Material;%0Aimport net.minecraft.block.state.IBlockState
 ;%0Aim
@@ -445,16 +445,65 @@
 cation;%0A
+import net.minecraft.entity.player.EntityPlayer;%0A
 import n
@@ -607,16 +607,63 @@
 Entity;%0A
+import net.minecraft.util.text.TextFormatting;%0A
 import n
@@ -1057,16 +1057,33 @@
 Provider
+, TOPInfoProvider
  %7B%0A%09%0A%09pu
@@ -1832,11 +1832,1018 @@
 or();%0A%09%7D
+%0A%0A    public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, IBlockState blockState, IProbeHitData data) %7B%0A        TileEntity te = world.getTileEntity(data.getPos());%0A        if (te instanceof TileEntityAreaProtector) %7B%0A            TileEntityAreaProtector areaprotector = (TileEntityAreaProtector) te;%0A            int xrange = Config.areaProtectorX;%0A            int yrange = Config.areaProtectorY;%0A            int zrange = Config.areaProtectorZ;%0A            probeInfo.text(TextFormatting.BOLD + %22Range:%22);%0A            probeInfo.text(TextFormatting.YELLOW + %22    X%22 + TextFormatting.RESET + %22 = %22 + TextFormatting.GREEN + %22%C2%B1%22 + Integer.toString(xrange));%0A            probeInfo.text(TextFormatting.YELLOW + %22    Y%22 + TextFormatting.RESET + %22 = %22 + TextFormatting.GREEN + %22%C2%B1%22 + Integer.toString(yrange));%0A            probeInfo.text(TextFormatting.YELLOW + %22    Z%22 + TextFormatting.RESET + %22 = %22 + TextFormatting.GREEN + %22%C2%B1%22 + Integer.toString(zrange));%0A        %7D%0A    %7D
 %0A%7D%0A

Add range info to the Area Protector's TOP display