Go to file
2023-04-11 20:50:36 -04:00
.idea please dont die 2023-03-12 02:42:52 +00:00
.vscode many fixes 2023-03-28 00:05:22 +00:00
desktopRuntime edit icon 2023-04-09 13:50:58 -06:00
gradle/wrapper Port to newest ver. 2023-01-19 00:23:31 +00:00
javascript fix scrollbar when scale on auto or large 2023-04-11 18:14:34 -04:00
src added mod categories, tested to work on all gui scales 2023-04-11 20:50:36 -04:00
.gitignore a 2023-04-05 20:23:17 +00:00
.prettierrc.yml reformat files tysm cold <3 2023-01-14 15:56:36 +00:00
build.gradle jamal 2023-04-10 17:58:19 +00:00
CompileEPK.bat src 2023-01-12 04:06:59 +00:00
CompileEPK.sh Port resent 2023-01-12 22:10:43 +00:00
gradlew decompile eaglercraft 2022-12-27 18:59:46 +00:00
gradlew.bat src 2023-01-12 04:06:59 +00:00
MakeOfflineDownload.bat src 2023-01-12 04:06:59 +00:00
MakeOfflineDownload.sh emergency: hitboxes crashes on disabling. Fixed this. 2023-01-13 00:14:53 +00:00
offline.sh Idktbh 2023-02-20 16:00:37 +00:00
OfflineDownloadTemplate.txt me watching a video about cults and realizing whats wrong with my code 2023-01-13 06:04:15 +00:00
pack.mcmeta Add a cps utils class. 2023-01-18 03:57:27 +00:00
pp.bat port pp.sh to windows!! 2023-03-16 19:48:11 -04:00
pp.sh me when 2023-03-04 19:17:46 +00:00
ratio.zip cancer 2023-03-05 22:10:10 +00:00
README.md compile 2023-02-02 22:56:46 +00:00
settings.gradle decompile eaglercraft 2022-12-27 18:59:46 +00:00
soffline.sh anti water lag 2023-03-05 04:36:18 +00:00
Start.java fps 2023-04-08 20:17:25 +00:00

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.