Advertisement
Guest User

Untitled

a guest
Jan 29th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. package crosstheline.main.items;
  2.  
  3. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  4. import net.minecraft.item.Item;
  5. import net.minecraftforge.client.model.ModelLoader;
  6. import net.minecraftforge.fml.common.registry.GameRegistry;
  7. import net.minecraftforge.fml.relauncher.Side;
  8. import net.minecraftforge.fml.relauncher.SideOnly;
  9.  
  10.  
  11. /**
  12. * Created by Joseph on 1/29/2017.
  13. */
  14. public class beltControl extends Item{
  15. public beltControl() {
  16. setRegistryName("belt_of_control");
  17. setUnlocalizedName("belt_of_control");
  18. GameRegistry.register(this);
  19. }
  20. @SideOnly(Side.CLIENT)
  21. public void initModel(){
  22. ModelLoader.setCustomModelResourceLocation(this,0, new ModelResourceLocation(getRegistryName(), "inventory"));
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement