Skip to content

A simple mod that allows bukkit plugins to listen to forge events

Notifications You must be signed in to change notification settings

AngryCarrot789/REghZyForgeBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REghZyForgeBridge

A simple mod that allows bukkit plugins to listen to forge events

It simply replicates the event bus' register() method, using a custom IEventHandler, instead of the ASMHandler. the ASM one won't be able to find classes that weren't loaded by a specific classloader, which i image to be the LauncClassLoader or some sort of mod classloader.

However, my one simply creates a wrapper around Method#invoke(), which works fine

example:

public class MyEventHandlers {
    public MyEventHandlers() {
        REghZyForgeBridge.register(this);
    }
    
    @ForgeSubscribe
    public void onChunkEvent(ChunkEvent e) {
        ...
    }
}

About

A simple mod that allows bukkit plugins to listen to forge events

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages