Skip to content

Commit

Permalink
Basic Modding draft 2
Browse files Browse the repository at this point in the history
How to Begin Modding renamed to Basic Modding.

Added .gitignore file to make it easy to make commits.
  • Loading branch information
Havvy committed Sep 6, 2012
1 parent 0882b46 commit 0247db8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
minecraft/Start.java
minecraft/cpw/*
minecraft/forge_logo.png
minecraft/havvy/*
minecraft/ibxm/*
minecraft/net/*
minecraft/paulscode/*
minecraft_server/*
common/*
26 changes: 6 additions & 20 deletions minecraft/tutorial/generic/CommonProxy.java
@@ -1,25 +1,11 @@
package tutorial.generic;

import net.minecraft.src.EntityPlayer;
import net.minecraft.src.World;
import cpw.mods.fml.common.network.IGuiHandler;

public class CommonProxy implements IGuiHandler {
public static final String ITEMS_PNG = "/tutorial/generic/items.png";
public static final String BLOCK_PNG = "/tutorial/generic/block.png";

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}
public class CommonProxy {
public static String ITEMS_PNG = "/tutorial/generic/items.png";
public static String BLOCK_PNG = "/tutorial/generic/block.png";

//Client stuff
public static void registerRenderInformation() {
//Nothing here as this is the server side proxy
// Client stuff
public void registerRenderers () {
// Nothing here as this is the server side proxy
}
}
2 changes: 1 addition & 1 deletion minecraft/tutorial/generic/client/ClientProxy.java
Expand Up @@ -4,7 +4,7 @@
import tutorial.generic.CommonProxy;

public class ClientProxy extends CommonProxy {
public static void registerRenderers() {
public void registerRenderers () {
MinecraftForgeClient.preloadTexture(ITEMS_PNG);
MinecraftForgeClient.preloadTexture(BLOCK_PNG);
}
Expand Down

0 comments on commit 0247db8

Please sign in to comment.