@@ -0,0 +1,1371 @@
+package net.mcft.copy.backpacks.misc.util;%0A%0Aimport net.minecraft.block.Block;%0Aimport net.minecraft.item.Item;%0Aimport net.minecraft.util.ResourceLocation;%0A%0Apublic final class MiscUtils %7B%0A%09%0A%09private MiscUtils() %7B  %7D%0A%09%0A%09/** Returns the block associated with the specified resource location. */%0A%09public static Block getBlockFromName(ResourceLocation location) %7B return Block.REGISTRY.getObject(location); %7D%0A%09/** Returns the block associated with the specified resource location name (for example %22minecraft:cobblestone%22). */%0A%09public static Block getBlockFromName(String name) %7B return getBlockFromName(new ResourceLocation(name)); %7D%0A%09/** Returns the block associated with the specified item. */%0A%09public static Block getBlockFromItem(Item item) %7B return getBlockFromName(item.getRegistryName()); %7D%0A%09%0A%09/** Returns the item associated with the specified resource location. */%0A%09public static Item getItemFromName(ResourceLocation location) %7B return Item.REGISTRY.getObject(location); %7D%0A%09/** Returns the item associated with the specified resource location name (for example %22minecraft:stick%22). */%0A%09public static Item getItemFromName(String name) %7B return getItemFromName(new ResourceLocation(name)); %7D%0A%09/** Returns the item associated with the specified block. */%0A%09public static Item getItemFromBlock(Block block) %7B return Item.REGISTRY.getObject(block.getRegistryName()); %7D%0A%09%0A%7D%0A

Add MiscUtils (getItem/BlockFrom...)