Search in sources :

Example 1 with RegistryReadOps

use of net.minecraft.resources.RegistryReadOps in project SpongeCommon by SpongePowered.

the class MinecraftMixin method impl$setWorldSettingsAdapter.

@Redirect(method = "loadWorldData", at = @At(value = "INVOKE", target = "Lnet/minecraft/resources/RegistryReadOps;create(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/core/RegistryAccess$RegistryHolder;)Lnet/minecraft/resources/RegistryReadOps;"))
private static RegistryReadOps impl$setWorldSettingsAdapter(final DynamicOps p_244335_0_, final ResourceManager p_244335_1_, final RegistryAccess.RegistryHolder p_244335_2_) {
    final RegistryReadOps worldSettingsAdapter = RegistryReadOps.create(p_244335_0_, p_244335_1_, p_244335_2_);
    BootstrapProperties.worldSettingsAdapter(worldSettingsAdapter);
    return worldSettingsAdapter;
}
Also used : RegistryReadOps(net.minecraft.resources.RegistryReadOps) Redirect(org.spongepowered.asm.mixin.injection.Redirect)

Aggregations

RegistryReadOps (net.minecraft.resources.RegistryReadOps)1 Redirect (org.spongepowered.asm.mixin.injection.Redirect)1