Skip to content

keir-nellyer/PluginMessageFramework

Repository files navigation

PluginMessageFramework

Project is still a WIP, the framework can drastically change at any moment, use at your own risk.

PluginMessageFramework is a project evolved from the legacy project PluginMessageAPI+ and is licensed under the MIT License. It aims to provide a seamless plugin message api across multiple implementations allowing plugin messages to be handled as packet objects rather than simple primitive types.

Requirements

  • Java 7 or higher
  • SLF4J API & Implementation

Usage

Creating Packets

public class MyPacket extends StandardPacket {

    private static final long serialVersionUID = 4714156896979723677L;
    
    private String message;
    
    public MyPacket(String message) {
        this.message = message;
    }
    
    public String getMessage() {
        return message;
    }

}

Please note that all fields must be of a type which implements java.io.Serializable otherwise you may need to customize the serialization and deserialization by implementing your own readObject(ObjectInputStream) and writeObject(ObjectOutputStream) methods.

Coming Soon

  • Dependency injection with GUICE

About

Abuse of generics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages