resent-1.8/README.md
ThisIsALegitUsername ed610f5f5d
Update README.md
2023-06-16 10:23:26 +08:00

3.2 KiB

in case this repo is open-sourced, here's some info:

(i wrote this with like 2 hours of sleep)

i have decided to fully quit eaglercraft and everything related for personal reasons (dont dig into my past, seriously. i don't like having severe paranoia that one of ur 12 year old asses is gonna raid my friend group). i first started working on this project a long time ago, and that means my code base and half of the code sucks an incredible amount of ass. if you're going to comment on code quality, don't. there are cheats in resent, what a surprise (xray and spawner esp, 3.5 reach), it's not hard to block the activation of these serverside. Finally, i loved my time in the eagler community (not really you all suck ngl) and it has affected me in many ways. (you may see me on mmc or mcpvp, feel free to talk to me or something)

alright, this notice is long enough. さようなら! (if you ever hear from me again i'll be back with a surprise)

fatal i know you're skidding this right now kys (uwu client always better)

ORIGINAL README BELOW:

Resent-1.8

if you're reading this, that means one of the following:

  • i open-sourced resent. this is most likely

  • another dev was added to the project.

  • you hacked into my account from my weak ass password and somehow bypassed github email verification.

     

either way, here's some documentation on this project. please note that I wrote all of this in a text editor so i probably made a few mistakes in the code.

Module system

   

Standard, non-render modules. (ex: fullbright, norain, tooltips)

create a new class structured like the following:

  @Module(name = "Example", category = Category.MISC) //theres another optional value, hasSetting, set to false by default.
  public class ExampleModule extends Mod {
    
    @Override //Overrides method in Mod class.
    public void onEnable(){
      //what happens when the module is enabled
    }
    
    @Override
    public void onDisable(){
      //what happens when the module is disabled
    }
  }

   

create a new class structured like this:

@RenderModule(name = "ExampleRender", category = Category.MISC, x = 4, y = 4)
public class ExampleRenderModule extends RenderModule {
  
  //this method is called in GuiIngame to draw stuff to the screen.
  public void draw(){
    mc.fontRendererObj.drawString("Test", this.getX(), this.getY(), -1 /* -1 is the color of the text. */);
  }
  
  //you can still use onEnable and onDisable methods.
}

 

Settings

not too difficult to figure out on your own, here's an example:

public class ExampleRenderModule extends RenderModule {
  public ExampleRenderModule(){
    addSetting(example);
  }
  
  public static BooleanSetting example = new BooleanSetting("Example", "" /* description */, true /* default value */);
  
  public void draw(){
    if(example.getValue())
    mc.fontRendererObj.drawString("Test", this.getX(), this.getY(), -1 /* -1 is the color of the text. */);
  }
  
}

^ this example was done with a booleansetting, its similar to a modesetting, too lazy to write a documentation for that cope.