Compiles, can get ingame, uses Mixins to work around missing Fork Hooks for structures and custom dimensions.

This commit is contained in:
Sebastian Hartte
2020-07-28 02:05:24 +02:00
parent 84e6aaa122
commit e640918ca0
14 changed files with 170 additions and 91 deletions
@@ -0,0 +1,16 @@
package appeng.mixins;
import net.minecraft.world.gen.GenerationStage;
import net.minecraft.world.gen.feature.structure.Structure;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(Structure.class)
public interface StructureAccessor {
@Invoker("func_236394_a_")
static <F extends Structure<?>> F register(String id, F feature, GenerationStage.Decoration defaultStage) {
throw new AssertionError();
}
}