2016-07-22 20:23:51 +02:00
|
|
|
/*
|
|
|
|
* This file ("InitEntities.java") is part of the Actually Additions mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-07-22 20:23:51 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.mod.entity;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2016-11-19 21:11:17 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2016-07-22 20:23:51 +02:00
|
|
|
import net.minecraftforge.fml.client.registry.RenderingRegistry;
|
|
|
|
import net.minecraftforge.fml.common.registry.EntityRegistry;
|
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
public final class InitEntities{
|
|
|
|
|
|
|
|
public static void init(){
|
2018-05-10 11:38:58 +02:00
|
|
|
ActuallyAdditions.LOGGER.info("Initializing Entities...");
|
2016-07-22 20:23:51 +02:00
|
|
|
|
2018-05-10 11:38:58 +02:00
|
|
|
EntityRegistry.registerModEntity(new ResourceLocation(ActuallyAdditions.MODID, "worm"), EntityWorm.class, ActuallyAdditions.MODID+".worm", 0, ActuallyAdditions.INSTANCE, 64, 1, false);
|
2016-07-22 20:23:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public static void initClient(){
|
2018-07-04 09:29:27 +02:00
|
|
|
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm::new);
|
2016-07-22 20:23:51 +02:00
|
|
|
}
|
2019-02-27 19:53:05 +01:00
|
|
|
|
2016-07-22 20:23:51 +02:00
|
|
|
}
|