MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Mark error fabric's mod initializer if it doesn't implements their specified common interfaces

Open KisaragiEffective opened this issue 3 years ago • 3 comments

In Fabric, we need to make mod initializer implements their interfaces [1]. one of example is:

@net.fabricmc.api.Environment(net.fabricmc.api.EnvType.CLIENT)
public class MyMod implements ClientModInitializer { // <--- needs ClientModInitializer
}

If MyMod doesn't implement it [1], ClassCastException will be thrown.

I would like to notice about that before run games, as well.

[1]: ModInitializer, ClientModInitializer, and ServerModInitializer

KisaragiEffective avatar Sep 22 '21 05:09 KisaragiEffective

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 00:01 stale[bot]

no, please review this

KisaragiEffective avatar Jan 11 '22 05:01 KisaragiEffective

bump

KisaragiEffective avatar Apr 26 '22 13:04 KisaragiEffective