2018-12-14 00:47:01 +01:00
|
|
|
package de.ellpeck.naturesaura.entities;
|
|
|
|
|
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
|
|
|
import de.ellpeck.naturesaura.entities.render.RenderEffectInhibitor;
|
2019-01-22 16:10:27 +01:00
|
|
|
import de.ellpeck.naturesaura.entities.render.RenderMoverMinecart;
|
2018-12-14 00:47:01 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import net.minecraftforge.fml.common.registry.EntityRegistry;
|
|
|
|
|
|
|
|
public final class ModEntities {
|
|
|
|
|
|
|
|
public static void init() {
|
|
|
|
EntityRegistry.registerModEntity(
|
|
|
|
new ResourceLocation(NaturesAura.MOD_ID, "effect_inhibitor"),
|
|
|
|
EntityEffectInhibitor.class, NaturesAura.MOD_ID + ".effect_inhibitor",
|
2019-01-22 16:10:27 +01:00
|
|
|
0, NaturesAura.MOD_ID, 64, 20, false);
|
2018-12-14 00:47:01 +01:00
|
|
|
NaturesAura.proxy.registerEntityRenderer(EntityEffectInhibitor.class, () -> RenderEffectInhibitor::new);
|
2019-01-22 16:10:27 +01:00
|
|
|
|
|
|
|
EntityRegistry.registerModEntity(
|
|
|
|
new ResourceLocation(NaturesAura.MOD_ID, "mover_cart"),
|
|
|
|
EntityMoverMinecart.class, NaturesAura.MOD_ID + ".mover_cart",
|
|
|
|
1, NaturesAura.MOD_ID, 64, 3, true);
|
|
|
|
NaturesAura.proxy.registerEntityRenderer(EntityMoverMinecart.class, () -> RenderMoverMinecart::new);
|
2018-12-14 00:47:01 +01:00
|
|
|
}
|
|
|
|
}
|