Results 1 to 1 of 1
  1. #1
    slcoolj's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Under Your Bed :3
    Posts
    6
    Reputation
    10
    Thanks
    3
    My Mood
    Tired

    Module base + how to use it.

    Here is a fully commented source dump for a module base + how to use it. (Please note this is a old one i had a while ago that i don't use anymore.
    Code:
    package me.slcoolj.neptune.modules.base;
     
    public class Module
    {
        public String display;
        public int color;
        private int key;
        private boolean displaying;
        protected boolean enabled;
    
        public Module(String par1Str, int par2, int par3, boolean par4)
        {
            this.display = par1Str;
            this.color = par2;
            this.key = par3; //The modules key (use keycodes)
            this.displaying = par4; //The fourth parameter is to check if you want it displaying into a arraylist (make a arraylist with a check on modules being enabled)
        }
        /**Getters*/
        public String getDisplayName(){return this.display;}
        public String getConfigName(){return this.configName;}
        public int getColor(){return this.color;}
        public int getKey(){return this.key;}
        public boolean isEnabled(){return this.enabled;}//Gets the state. i.e if(ModuleManager.hack.isEnabled())
        public boolean shouldDisplay(){return this.displaying;}
        /**Toggle shit*/
        public void toggle()
        {
            this.enabled = !this.enabled;
            if (this.enabled){this.onEnabled();}
            else if (!this.enabled)
            {this.onDisabled();}
        }
        public void toggleOff()
        {this.enabled = false; this.onDisabled();}
        public void toggleOn()
        {this.enabled = true; this.onEnabled();}
        
        /**On'ers? idfk*/
        public void onEnabled()
        {this.enabled = true;}
        public void onDisabled()
        {this.enabled = false;}
        /**All the stuff that will do certain things depending on what hook is put into them by a hook.java class*/
        public void preMotionUpdate() {}//Before the motion update in entityclientplayer
        public void postMotionUpdate() {}//After the motion update in entityclient player
        public void on********date() {}//onUpdate in EntityClientPlayer or in EntityPlayerSP it's LivingUpdate or something
        public void onCommand(String var1) {}//if(par1Str.startsWith(.) && !par1Str.startsWith(.); something like that i don't remember in the onSendMessage or something. Entityclientplayer
        //Do more for yourself!
    }
    Now heres how to use it.
    Code:
    package me.slcoolj.neptune.modules.example;
    
    import me.slcoolj.neptune.modules.base;
    
    import net.minecraft.client.*;
    
    public class Example extends Module{ 
    public Example(){
           super("Example", 0xFFFFFF, 33/**This keycode is F*/, true);
       }
      private Minecraft mc = Minecraft.getMinecraft();
     @override
        public void onEnabled(){
        mc.thePlayer.addChatMessage("ERMAHGERD MERDULE");
    }
    Thank you for reading if you actually read this instead of copying and pasting.
    Also if my grammar or anything is off i'm very tired, so excuse it.

  2. The Following User Says Thank You to slcoolj For This Useful Post:

    LordPankake (05-25-2013)

Similar Threads

  1. [TUT] How to use kssn GENERATOR
    By ktalin91 in forum WarRock Korea Hacks
    Replies: 13
    Last Post: 05-10-2009, 07:17 PM
  2. How to Use Tsearch
    By wardo1926 in forum Hack Requests
    Replies: 5
    Last Post: 12-18-2007, 09:24 PM
  3. warrock addresses and how to use
    By ragman1234 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 04-15-2007, 12:38 PM
  4. Help! how to use ardamax keylogg
    By gmgundamx7 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 02-28-2007, 04:43 PM
  5. How To Use A Render By Phate
    By Paolo1993 in forum Tutorials
    Replies: 0
    Last Post: 01-27-2006, 08:03 PM