mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-06-27 06:58:21 +02:00
- Use DeferredRegister/RegistryObject where possible - Refactor worldgen code to be cleaner and support datagen - Fix zinc ore only generating on chunk corners - Remove fan_heaters block tag
20 lines
834 B
Java
20 lines
834 B
Java
package com.simibubi.create;
|
|
|
|
import com.simibubi.create.content.schematics.SchematicProcessor;
|
|
|
|
import net.minecraft.core.Registry;
|
|
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorType;
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
|
import net.minecraftforge.registries.DeferredRegister;
|
|
import net.minecraftforge.registries.RegistryObject;
|
|
|
|
public class AllStructureProcessorTypes {
|
|
private static final DeferredRegister<StructureProcessorType<?>> REGISTER = DeferredRegister.create(Registry.STRUCTURE_PROCESSOR_REGISTRY, Create.ID);
|
|
|
|
public static final RegistryObject<StructureProcessorType<SchematicProcessor>> SCHEMATIC = REGISTER.register("schematic", () -> () -> SchematicProcessor.CODEC);
|
|
|
|
public static void register(IEventBus modEventBus) {
|
|
REGISTER.register(modEventBus);
|
|
}
|
|
}
|