package net.minecraft.data.worldgen; import com.mojang.serialization.Lifecycle; import net.minecraft.core.Holder; import net.minecraft.core.HolderGetter; import net.minecraft.core.Registry; import net.minecraft.resources.ResourceKey; public interface BootstrapContext { Holder.Reference register(ResourceKey key, T value, Lifecycle lifecycle); default Holder.Reference register(final ResourceKey key, final T value) { return this.register(key, value, Lifecycle.stable()); } HolderGetter lookup(ResourceKey> key); }