Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/25/20 in all areas

  1. *cough* SlotItemHandler *cough*
    1 point
  2. 1. You need to use ObfuscationReflectionHelper (can’t remember the exact spelling). 2. Reflection is expensive. Use it once and store the result in a static field and use that from now on. 3. You should directly reference PlayerEntity.class instead of using getClass.
    1 point
  3. Hi Please update your github so I can attempt to compile it myself? Cheers TGG
    1 point
  4. You actually can list files from your classpath using the code below: InputStream stream = this.getClass().getClassLoader().getResourceAsStream("assets/enderstuffp"); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); try { while( reader.ready() ) { System.out.println(reader.readLine()); } } catch( IOException e ) { e.printStackTrace(); } where this represents your mod class and "assets/enderstuffp" is your assets folder It prints a list into your console of all files and folders within the assets folder. Please note that it doesn't do a "deep-search", so you need to write your own method for that if you desire to do a deep search.
    0 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.