@@ -0,0 +1,862 @@
+package org.cyclops.cyclopscore.helper;%0A%0Aimport net.minecraft.tileentity.TileEntity;%0Aimport net.minecraft.util.BlockPos;%0Aimport net.minecraft.world.IBlockAccess;%0A%0A/**%0A * Contains helper methods for various tile entity specific things.%0A * @author rubensworks%0A */%0Apublic final class TileHelpers %7B%0A%0A    /**%0A     * Safely cast a tile entity.%0A     * @param world The world.%0A     * @param pos The position of the block providing the tile entity.%0A     * @param %3CT%3E The type of tile to cast at.%0A     * @return The tile entity or null.%0A     */%0A    public static %3CT extends TileEntity%3E T getSafeTile(IBlockAccess world, BlockPos pos) %7B%0A        TileEntity tile = world.getTileEntity(pos);%0A        if(tile != null) %7B%0A            try %7B%0A                return (T) world.getTileEntity(pos);%0A            %7D catch (ClassCastException e) %7B%7D%0A        %7D%0A        return null;%0A    %7D%0A%0A%7D%0A

Add convenience method to safely autocast Tile Entities