2023-11-12 23:19:12 +05:00

17 lines
653 B
Java

package ru.bitheaven.createairfabric.mixin;
import ru.bitheaven.createairfabric.CreateAirFabric;
import net.minecraft.client.Minecraft;
import net.minecraft.client.main.GameConfig;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Minecraft.class)
public class MinecraftMixin {
@Inject(method = "<init>", at = @At("TAIL"))
private void example$init(GameConfig gameConfig, CallbackInfo ci) {
CreateAirFabric.LOGGER.info("Hello from {}", CreateAirFabric.NAME);
}
}