mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
less jank registration mixin
This commit is contained in:
parent
3a89dc8309
commit
83bc8cb026
@ -1,6 +1,7 @@
|
|||||||
package com.dfsek.terra.fabric.mixin.lifecycle;
|
package com.dfsek.terra.fabric.mixin.lifecycle;
|
||||||
|
|
||||||
|
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
import net.minecraft.world.gen.chunk.ChunkGenerator;
|
import net.minecraft.world.gen.chunk.ChunkGenerator;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
@ -10,8 +11,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
import com.dfsek.terra.fabric.FabricEntryPoint;
|
import com.dfsek.terra.fabric.FabricEntryPoint;
|
||||||
|
|
||||||
|
|
||||||
@Mixin(ChunkGenerator.class)
|
// Register Terra things to the builtin registries.
|
||||||
public class ChunkGenerator_ChunkGeneratorRegistrationMixin {
|
@Mixin(Registry.class)
|
||||||
|
public class RegistryMixin {
|
||||||
@Inject(method = "<clinit>", at = @At("RETURN"))
|
@Inject(method = "<clinit>", at = @At("RETURN"))
|
||||||
private static void registerTerraGenerators(CallbackInfo ci) {
|
private static void registerTerraGenerators(CallbackInfo ci) {
|
||||||
FabricEntryPoint.register();
|
FabricEntryPoint.register();
|
@ -32,7 +32,7 @@
|
|||||||
"implementations.inventory.meta.ItemStackMetaMixin",
|
"implementations.inventory.meta.ItemStackMetaMixin",
|
||||||
"implementations.world.ChunkRegionMixin",
|
"implementations.world.ChunkRegionMixin",
|
||||||
"implementations.world.ServerWorldMixin",
|
"implementations.world.ServerWorldMixin",
|
||||||
"lifecycle.ChunkGenerator_ChunkGeneratorRegistrationMixin",
|
"lifecycle.RegistryMixin",
|
||||||
"lifecycle.DataPackContentsMixin",
|
"lifecycle.DataPackContentsMixin",
|
||||||
"lifecycle.MinecraftServerMixin"
|
"lifecycle.MinecraftServerMixin"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user