dev.the_fireplace.grandeconomy.api.event.BalanceChangeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GrandEconomy Show documentation
Show all versions of GrandEconomy Show documentation
A server-side economy mod/api for Minecraft.
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