From 908df5a251ef5dcbc81bb4181849045d7b8a365d Mon Sep 17 00:00:00 2001 From: Lyof Date: Mon, 19 Aug 2024 15:50:03 +0200 Subject: [PATCH] set the entity package structure --- .../infernalexp/InfernalExpansion.java | 5 +++-- .../infernalexp/entity/ModEntities.java | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/infernalstudios/infernalexp/entity/ModEntities.java diff --git a/src/main/java/org/infernalstudios/infernalexp/InfernalExpansion.java b/src/main/java/org/infernalstudios/infernalexp/InfernalExpansion.java index 314869fb..6c328588 100644 --- a/src/main/java/org/infernalstudios/infernalexp/InfernalExpansion.java +++ b/src/main/java/org/infernalstudios/infernalexp/InfernalExpansion.java @@ -1,9 +1,9 @@ package org.infernalstudios.infernalexp; import net.fabricmc.api.ModInitializer; - import net.minecraft.util.Identifier; import org.infernalstudios.infernalexp.block.ModBlocks; +import org.infernalstudios.infernalexp.entity.ModEntities; import org.infernalstudios.infernalexp.item.ModItemGroups; import org.infernalstudios.infernalexp.item.ModItems; import org.infernalstudios.infernalexp.setup.ModDataGenerator; @@ -19,9 +19,10 @@ public class InfernalExpansion implements ModInitializer { public void onInitialize() { ModItems.register(); ModBlocks.register(); - ModItemGroups.register(); + ModEntities.register(); + /** The rest of this method's body should be left as called last to prevent datagen issues, only add stuff before this comment */ ModDataGenerator.registerBurnable(); diff --git a/src/main/java/org/infernalstudios/infernalexp/entity/ModEntities.java b/src/main/java/org/infernalstudios/infernalexp/entity/ModEntities.java new file mode 100644 index 00000000..a5b7b782 --- /dev/null +++ b/src/main/java/org/infernalstudios/infernalexp/entity/ModEntities.java @@ -0,0 +1,13 @@ +package org.infernalstudios.infernalexp.entity; + +import org.infernalstudios.infernalexp.InfernalExpansion; + +public class ModEntities { + /** Wanted to write some dummy stuff on how to register entities, but it's different with Gecko so I don't know how in the end */ + public static void register() { + InfernalExpansion.log("Registering Entities for " + InfernalExpansion.MOD_ID); + + /** Every entity needs its attributes registered this way */ + //FabricDefaultAttributeRegistry.register(CRYSTIE, CrystieEntity.createAttributes()); + } +}