All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.the_fireplace.grandeconomy.api.event.BalanceChangeEvent Maven / Gradle / Ivy

There is a newer version: 4.1.0+1.16.5
Show newest version
package dev.the_fireplace.grandeconomy.api.event;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;

import java.util.UUID;

public interface BalanceChangeEvent {
    Event EVENT = EventFactory.createArrayBacked(BalanceChangeEvent.class,
        (listeners) -> (accountId, oldBalance, newBalance) -> {
            for(BalanceChangeEvent event: listeners)
                event.onBalanceChanged(accountId, oldBalance, newBalance);
        });

    void onBalanceChanged(UUID accountId, double oldBalance, double newBalance);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy