Skip to content

Commit

Permalink
Fixed entities not being correctly registered after the AllTheModium …
Browse files Browse the repository at this point in the history
…patch.
  • Loading branch information
TheBv committed Jun 18, 2023
1 parent 5aef326 commit d8b68f5
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.MobSpawnInfo;
import net.minecraft.world.gen.Heightmap;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.event.entity.EntityAttributeCreationEvent;
import net.minecraftforge.event.world.BiomeLoadingEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
Expand Down Expand Up @@ -102,7 +103,27 @@ private static <T extends Entity> RegistryObject<EntityType<T>> registerEntity(E

public static void setup() {
}
@SubscribeEvent
public static void registerEntities(RegistryEvent.Register<EntityType<?>> event) {
event.getRegistry().register(SEA_SERPENT);
event.getRegistry().register(SIREN);
event.getRegistry().register(HIPPOCAMPUS);
event.getRegistry().register(TROLL);
event.getRegistry().register(AMPHITHERE);
event.getRegistry().register(HIPPOGRYPH);
event.getRegistry().register(GHOST);
event.getRegistry().register(GHOST_SWORD);
event.getRegistry().register(HYDRA);
event.getRegistry().register(DREAD_THRALL);
event.getRegistry().register(DREAD_GHOUL);
event.getRegistry().register(DREAD_BEAST);
event.getRegistry().register(DREAD_SCUTTLER);
event.getRegistry().register(DREAD_LICH);
event.getRegistry().register(DREAD_KNIGHT);
event.getRegistry().register(DREAD_HORSE);


}
@SubscribeEvent
public static void bakeAttributes(EntityAttributeCreationEvent creationEvent) {
creationEvent.put(DRAGON_EGG.get(), EntityDragonEgg.bakeAttributes().create());
Expand Down

0 comments on commit d8b68f5

Please sign in to comment.