
Initial publishing of the 1.16.3 branch of the mod. A lot of systems are missing (such as Rituals and Living Armour), but enough is present for a decent Alpha release.
30 lines
1.2 KiB
Java
30 lines
1.2 KiB
Java
package wayoftime.bloodmagic.entity;
|
|
|
|
import net.minecraft.entity.EntityType;
|
|
import net.minecraftforge.client.event.ModelRegistryEvent;
|
|
import net.minecraftforge.event.RegistryEvent;
|
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
import net.minecraftforge.fml.common.Mod;
|
|
import wayoftime.bloodmagic.BloodMagic;
|
|
|
|
@Mod.EventBusSubscriber(modid = BloodMagic.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
public class BloodMagicEntities
|
|
{
|
|
private BloodMagicEntities()
|
|
{
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public static void registerEntities(RegistryEvent.Register<EntityType<?>> event)
|
|
{
|
|
// System.out.println("Ow O");
|
|
// event.getRegistry().register(EntityType.Builder.<EntitySoulSnare>create(EntitySoulSnare::new, EntityClassification.MISC).setTrackingRange(64).setUpdateInterval(1).setShouldReceiveVelocityUpdates(false).setCustomClientFactory(((spawnEntity, world) -> new EntitySoulSnare(EntitySoulSnare.TYPE, world))).build("").setRegistryName(BloodMagic.rl("entitysoulsnare")));
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public static void registerModels(ModelRegistryEvent evt)
|
|
{
|
|
// System.out.println("O wO");
|
|
// RenderingRegistry.registerEntityRenderingHandler(BloodMagicEntityTypes.SNARE.getEntityType(), SoulSnareRenderer::new);
|
|
}
|
|
}
|