package mcjty.deepresonance.blocks;
import mcjty.deepresonance.DeepResonance;
import net.minecraft.block.Block;
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.util.math.BlockPos;
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;
public class MachineFrame extends Block {
public MachineFrame() {
super(Material.IRON);
setUnlocalizedName("machine_frame");
setRegistryName("machine_frame");
setCreativeTab(DeepResonance.tabDeepResonance);
GameRegistry.register(this);
GameRegistry.register(new ItemBlock(this), getRegistryName());
}
@SideOnly(Side.CLIENT)
public void initModel() {
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), 0, new ModelResourceLocation(getRegistryName(), "inventory"));
}
@Override
public boolean canPlaceBlockAt(World worldIn, BlockPos pos) {
return false;
}
}