boiler almost a plate code
This commit is contained in:
parent
965a48979e
commit
72cc539b0c
8 changed files with 47 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
package net.halbear.aotg;
|
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 org.slf4j.Logger;
|
||||||
|
|
||||||
import com.mojang.logging.LogUtils;
|
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.DeferredItem;
|
||||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
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
|
// The value here should match an entry in the META-INF/neoforge.mods.toml file
|
||||||
@Mod(AgeoftheGods.MODID)
|
@Mod(AgeoftheGods.MODID)
|
||||||
public class AgeoftheGods {
|
public class AgeoftheGods {
|
||||||
|
|
@ -75,6 +80,7 @@ public class AgeoftheGods {
|
||||||
ITEMS.register(modEventBus);
|
ITEMS.register(modEventBus);
|
||||||
// Register the Deferred Register to the mod event bus so tabs get registered
|
// Register the Deferred Register to the mod event bus so tabs get registered
|
||||||
CREATIVE_MODE_TABS.register(modEventBus);
|
CREATIVE_MODE_TABS.register(modEventBus);
|
||||||
|
BIOMES.register(modEventBus);
|
||||||
|
|
||||||
// Register ourselves for server and other game events we are interested in.
|
// 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.
|
// Note that this is necessary if and only if we want *this* class (AgeoftheGods) to respond directly to events.
|
||||||
|
|
|
||||||
17
src/main/java/net/halbear/aotg/registries/ModBiomes.java
Normal file
17
src/main/java/net/halbear/aotg/registries/ModBiomes.java
Normal file
|
|
@ -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
|
||||||
|
);
|
||||||
|
}
|
||||||
4
src/main/java/net/halbear/aotg/registries/ModBlocks.java
Normal file
4
src/main/java/net/halbear/aotg/registries/ModBlocks.java
Normal file
|
|
@ -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 {
|
||||||
|
}
|
||||||
4
src/main/java/net/halbear/aotg/registries/ModItems.java
Normal file
4
src/main/java/net/halbear/aotg/registries/ModItems.java
Normal file
|
|
@ -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 {
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue