Add an example of a mod ID prefix for mixins

This commit is contained in:
Ennui Langeweile 2022-08-24 22:43:46 -03:00 committed by GitHub
parent 9c8940d2ae
commit 562445fc97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(TitleScreen.class)
public class TitleScreenMixin {
@Inject(method = "init", at = @At("TAIL"))
public void onInit(CallbackInfo ci) {
public void exampleMod$onInit(CallbackInfo ci) {
ExampleMod.LOGGER.info("This line is printed by an example mod mixin!");
}
}