boiler almost a plate code
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package net.halbear.aotg;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.levelgen.WorldGenSettings;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
import com.mojang.logging.LogUtils;
|
||||
@@ -31,6 +34,8 @@ import net.neoforged.neoforge.registries.DeferredHolder;
|
||||
import net.neoforged.neoforge.registries.DeferredItem;
|
||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||
|
||||
import static net.halbear.aotg.registries.ModBiomes.BIOMES;
|
||||
|
||||
// The value here should match an entry in the META-INF/neoforge.mods.toml file
|
||||
@Mod(AgeoftheGods.MODID)
|
||||
public class AgeoftheGods {
|
||||
@@ -75,6 +80,7 @@ public class AgeoftheGods {
|
||||
ITEMS.register(modEventBus);
|
||||
// Register the Deferred Register to the mod event bus so tabs get registered
|
||||
CREATIVE_MODE_TABS.register(modEventBus);
|
||||
BIOMES.register(modEventBus);
|
||||
|
||||
// Register ourselves for server and other game events we are interested in.
|
||||
// Note that this is necessary if and only if we want *this* class (AgeoftheGods) to respond directly to events.
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package net.halbear.aotg.registries;
|
||||
|
||||
import net.halbear.aotg.AgeoftheGods;
|
||||
import net.minecraft.core.registries.BuiltInRegistries;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Optional;
|
||||
|
||||
public class ModBiomes {
|
||||
public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(
|
||||
Registries.BIOME,
|
||||
AgeoftheGods.MODID
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.registries;
|
||||
|
||||
public class ModBlocks {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.registries;
|
||||
|
||||
public class ModDimensions {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.registries;
|
||||
|
||||
public class ModEntities {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.registries;
|
||||
|
||||
public class ModItems {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.utility;
|
||||
|
||||
public class ClientEventHandler {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package net.halbear.aotg.utility;
|
||||
|
||||
public class ModEventHandler {
|
||||
}
|
||||
Reference in New Issue
Block a user