LeashedPlayer/src/main/java/com/r3944realms/leashedplayer/mixin/registry/MixinJukeboxSongs.java
2025-04-10 09:03:09 +08:00

19 lines
769 B
Java

package com.r3944realms.leashedplayer.mixin.registry;
import com.r3944realms.leashedplayer.datagen.provider.attributes.ModJukeboxSongs;
import net.minecraft.data.worldgen.BootstrapContext;
import net.minecraft.world.item.JukeboxSong;
import net.minecraft.world.item.JukeboxSongs;
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(JukeboxSongs.class)
public interface MixinJukeboxSongs {
@Inject(method = {"bootstrap"}, at = @At("TAIL"))
private static void bootstrap(BootstrapContext<JukeboxSong> pContext, CallbackInfo ci) {
ModJukeboxSongs.JukeboxSongBootstrap(pContext);
}
}