NaturesAura/src/main/java/de/ellpeck/naturesaura/entities/ModEntities.java

25 lines
1.1 KiB
Java
Raw Normal View History

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;
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);
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);
}
}