Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.20 KB | None | 0 0
  1. package kalmondo.tutorial.common.core;
  2.  
  3. import net.minecraft.src.Block;
  4. import net.minecraft.src.EntityPlayer;
  5. import net.minecraft.src.Item;
  6. import net.minecraft.src.ItemStack;
  7. import net.minecraft.src.TileEntity;
  8. import net.minecraft.src.World;
  9. import cpw.mods.fml.common.network.IGuiHandler;
  10. import cpw.mods.fml.common.registry.GameRegistry;
  11. import cpw.mods.fml.common.registry.LanguageRegistry;
  12. public class CommonProxy implements IGuiHandler{ //THIS IS IMPORTANT, CANNOT BE A PROXY/GUI HANDLER WITHOUT THIS!!
  13. public void registerRenderInformation() //Client side texture registering
  14. {
  15. }
  16. @Override
  17. public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { //For GUI's
  18. return null;
  19. }
  20. @Override
  21. public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { //For GUI's
  22. return null;
  23. }
  24. public void registerTiles(){ //For registering TileEntities
  25. }
  26. public void registerBlocks(){ //For registering Blocks
  27. }
  28. public void addNames(){ //For adding Item's ingame names
  29.     LanguageRegistry.addName(TutorialMain.ruby, "Ruby"); //Adds the name for the ruby item
  30. }
  31. public void addRecipes(){ //For adding your Item's recipes
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement