Godot Signal System Lib

Godot Signal System Lib

Mod

Signal system of Godot Game Engine for Minecraft

Client or server LibraryUtility

101 downloads
3 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Better than adventure

This mod uses a modified version of Fabric (Babric) and is designed only for Better than Adventure, a heavily modified version of Minecraft b1.7.3! For more information, join the discord server provided on this projects

Godot Signal System Lib

What's This Mod?

This mod provides an implementation of a signal system, inspired by event-driven programming paradigms. It allows different parts of your mod or application to communicate in a decoupled manner.

Features:

  • Signal Handling: Manage and emit events using signals.
  • Flexible Communication: Connect multiple listeners to respond to events.
  • Decoupled Architecture: Improve modularity and reduce direct dependencies between components.

Example Usage:

import core.signal.Signal;

public class ExampleUsage {
private static final Signal<String> MESSAGE_SIGNAL = new Signal<>();

    public static void main(String[] args) {
        // Connect a listener to handle String messages
        MESSAGE_SIGNAL.connect(message -> {
            System.out.println("Received message: " + message);
        });

        // Emit a message
        String message = "Hello, World!";
        MESSAGE_SIGNAL.emit(message);
    }
}

This mod is useful for enhancing communication and event handling within your mod.

Mod examples

I don't know; I don't have any real examples, but could you give me one?


Project members

Garkatron

Member

Details

Licensed CC-BY-NC-4.0
Published 5 months ago
Updated 5 months ago