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

top.hendrixshen.magiclib.impl.event.minecraft.LanguageManagerEvent Maven / Gradle / Ivy

There is a newer version: 0.6.59
Show newest version
package top.hendrixshen.magiclib.impl.event.minecraft;

import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.api.event.Event;
import top.hendrixshen.magiclib.api.event.minecraft.LanguageManagerListener;

import java.util.List;

public class LanguageManagerEvent {
    public static class LanguageReloadEvent implements Event {
        @Override
        public void dispatch(@NotNull List listeners) {
            listeners.forEach(LanguageManagerListener::postLanguageReload);
        }

        @Override
        public Class getListenerType() {
            return LanguageManagerListener.class;
        }
    }

    public static class LanguageSelectEvent implements Event {
        @Override
        public void dispatch(@NotNull List listeners) {
            listeners.forEach(LanguageManagerListener::postLanguageSelect);
        }

        @Override
        public Class getListenerType() {
            return LanguageManagerListener.class;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy