mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-15 12:39:10 +01:00
0787f6eb6c
* update to gradle 4.0 * update forge/maps * Fix table on a stick now mimics vanilla behavior and tries to add stacks back to inv before dropping. * fix a nonsense dupe glitch * fix worm * move a thing so its not on fire and lowercase thingy
34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
/*
|
|
* 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
|
|
*
|
|
* © 2015-2017 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.entity;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
|
import net.minecraft.util.ResourceLocation;
|
|
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(){
|
|
ModUtil.LOGGER.info("Initializing Entities...");
|
|
|
|
EntityRegistry.registerModEntity(new ResourceLocation(ModUtil.MOD_ID, "worm"), EntityWorm.class, ModUtil.MOD_ID+".worm", 0, ActuallyAdditions.instance, 64, 1, false);
|
|
}
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
public static void initClient(){
|
|
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm.FACTORY);
|
|
}
|
|
|
|
}
|