top.hendrixshen.magiclib.api.compat.minecraft.client.MinecraftCompat Maven / Gradle / Ivy
package top.hendrixshen.magiclib.api.compat.minecraft.client;
import com.mojang.blaze3d.platform.Window;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
import net.minecraft.client.Minecraft;
import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.impl.compat.minecraft.client.MinecraftCompatImpl;
import top.hendrixshen.magiclib.util.collect.Provider;
@OnlyIn(Dist.CLIENT)
public interface MinecraftCompat extends Provider {
static MinecraftCompat getInstance() {
return MinecraftCompatImpl.getInstance();
}
Window getWindow();
@Override
default @NotNull Minecraft get() {
return Minecraft.getInstance();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy