Skip to content

Commit

Permalink
set the entity package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyof429 committed Aug 19, 2024
1 parent f734fa3 commit 908df5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit 908df5a

Please sign in to comment.