Advertisement
riking

Example

Mar 26th, 2011
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.21 KB | None | 0 0
  1. import java.io.File;
  2. import net.minecraft.client.Minecraft;
  3.  
  4. public class mod_Sorter extends BaseMod {
  5.     public static RikProps props;
  6.     static {
  7.         props = new RikProps(new File(getAppdata() + '/' + "SorterMod.properties").getPath());
  8.         props.save();
  9.        
  10.         ModLoader.RegisterTileEntity(TileEntSorter.class, "Sorter");
  11.     }
  12. //this line. The BlockSorter constructor accepts all these texture indices and returns them when appropriate.
  13.     public qk sorter = new BlockSorter(props.getInt("sorterID",245),ModLoader.addOverride("/terrain.png", "/rikmods/sorter_top.png"),ModLoader.addOverride("/terrain.png", "/rikmods/sorter_bk.png"),ModLoader.addOverride("/terrain.png", "/rikmods/sorter_r.png"),ModLoader.addOverride("/terrain.png", "/rikmods/sorter_g.png"),ModLoader.addOverride("/terrain.png", "/rikmods/sorter_bu.png")).c(1.0F).a(qk.h).a("sorter");
  14.  
  15.     public String Version() { return "Beta 1.3_01, mod version 1.2"; }
  16.     private static String getAppdata() { return Minecraft.b().getPath(); }
  17.    
  18.     public mod_Sorter() {
  19.         ModLoader.RegisterBlock(sorter);
  20.         ModLoader.AddName(sorter,"Sorting Machine");
  21.     }
  22.    
  23.     public void AddRecipes(fr recp) {
  24.         recp.a(new gz(sorter,2), new Object[]{"d", Character.valueOf('d'), qk.v});
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement