Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import net.minecraft.client.Minecraft;
- public class mod_Sorter extends BaseMod {
- public static RikProps props;
- static {
- props = new RikProps(new File(getAppdata() + '/' + "SorterMod.properties").getPath());
- props.save();
- ModLoader.RegisterTileEntity(TileEntSorter.class, "Sorter");
- }
- //this line. The BlockSorter constructor accepts all these texture indices and returns them when appropriate.
- 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");
- public String Version() { return "Beta 1.3_01, mod version 1.2"; }
- private static String getAppdata() { return Minecraft.b().getPath(); }
- public mod_Sorter() {
- ModLoader.RegisterBlock(sorter);
- ModLoader.AddName(sorter,"Sorting Machine");
- }
- public void AddRecipes(fr recp) {
- recp.a(new gz(sorter,2), new Object[]{"d", Character.valueOf('d'), qk.v});
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement