Скачать Godot Signal System Lib — Minecraft Моды — ModStock

Godot Signal System Lib

Активный

Установок

3

Последнее обновление

10 месяцев назад

Версии

b1.7.3
Клиент
Fabric
Библиотеки
Утилиты

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?

Участники проекта
Garkatron

Garkatron

Разработчик