Java Code Examples for net.minecraftforge.fml.common.registry.EntityRegistry#registerModEntity()
The following examples show how to use
net.minecraftforge.fml.common.registry.EntityRegistry#registerModEntity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CommonProxy.java From TFC2 with GNU General Public License v3.0 | 6 votes |
protected void registerEntities() { DataSerializersTFC.register(); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"cart"), EntityCart.class, "cart", 0, TFC.instance, 80, 3, true, 0x000000, 0x00ff00); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"bear"), EntityBear.class, "bear", 1, TFC.instance, 80, 3, true, 0x000000, 0xff0000); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"bearpanda"), EntityBearPanda.class, "bearpanda", 2, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"lion"), EntityLion.class, "lion", 3, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"tiger"), EntityTiger.class, "tiger", 4, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"rhino"), EntityRhino.class, "rhino", 5, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"elephant"), EntityElephant.class, "elephant", 6, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"mammoth"), EntityMammoth.class, "mammoth", 7, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"boar"), EntityBoar.class, "boar", 8, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"bison"), EntityBison.class, "bison", 9, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"foxred"), EntityFoxRed.class, "foxred", 10, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"foxarctic"), EntityFoxArctic.class, "foxarctic", 11, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"foxdesert"), EntityFoxDesert.class, "foxdesert", 12, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"hippo"), EntityHippo.class, "hippo", 13, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"bigcat"), EntityBigCat.class, "bigcat", 14, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"sabertooth"), EntitySabertooth.class, "sabertooth", 15, TFC.instance, 80, 3, true, 0x000000, 0xffffff); EntityRegistry.registerModEntity(Core.CreateRes(Reference.getResID()+"elk"), EntityElk.class, "elk", 16, TFC.instance, 80, 3, true, 0x000000, 0xffffff); }
Example 2
Source File: ValkyrienSkiesWorld.java From Valkyrien-Skies with Apache License 2.0 | 5 votes |
@EventHandler protected void init(FMLInitializationEvent event) { EntityRegistry.registerModEntity( new ResourceLocation(ValkyrienSkiesWorld.MOD_ID, "fall_up_block_entity"), EntityFallingUpBlock.class, "fall_up_block_entity", 75, ValkyrienSkiesWorld.INSTANCE, 80, 1, true); MinecraftForge.EVENT_BUS.register(worldEventsCommon); GameRegistry.registerWorldGenerator(new ValkyrienSkiesWorldGen(), 1); proxy.init(event); }
Example 3
Source File: BlockyEntities.java From CommunityMod with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void onPreInit(FMLPreInitializationEvent event) { PacketHandler.registerMessages("hyperstellar"); EntityRegistry.registerModEntity(new ResourceLocation(CommunityGlobals.MOD_ID, "BaseVehicle"), BaseVehicleEntity.class, "BaseVehicle", 45, CommunityMod.INSTANCE, 64, 3, true); if (!ForgeChunkManager.getConfig().hasCategory(CommunityGlobals.MOD_ID)) { ForgeChunkManager.getConfig().get(CommunityGlobals.MOD_ID, "maximumChunksPerTicket", MaxRocketSize / 16) .setMinValue(0); ForgeChunkManager.getConfig().get(CommunityGlobals.MOD_ID, "maximumTicketCount", 10000).setMinValue(0); ForgeChunkManager.getConfig().save(); } HDataSerializers.register(); }
Example 4
Source File: CommonProxy.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void preInit(FMLPreInitializationEvent evt) { GameRegistry.registerTileEntity(FWTile.class, "novaTile"); GameRegistry.registerTileEntity(FWTileUpdater.class, "novaTileUpdater"); int globalUniqueEntityId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(FWEntity.class, "novaEntity", globalUniqueEntityId); EntityRegistry.registerModEntity(FWEntity.class, "novaEntity", globalUniqueEntityId, NovaMinecraft.instance, 64, 20, true); }
Example 5
Source File: Mobycraft.java From mobycraft with Apache License 2.0 | 5 votes |
public void registerModEntity(Class entityClass, Render render, String entityName, int entityId, int foregroundColor, int backgroundColor) { EntityRegistry.registerGlobalEntityID(entityClass, entityName, entityId, foregroundColor, backgroundColor); EntityRegistry.registerModEntity(entityClass, entityName, entityId, this, 80, 1, false); RenderingRegistry.registerEntityRenderingHandler(entityClass, render); }
Example 6
Source File: BlockConfusingCharge.java From EnderZoo with Creative Commons Zero v1.0 Universal | 5 votes |
public static BlockConfusingCharge create() { PacketHandler.INSTANCE.registerMessage(PacketExplodeEffect.class, PacketExplodeEffect.class, PacketHandler.nextID(), Side.CLIENT); EntityRegistry.registerModEntity(new ResourceLocation(EnderZoo.MODID,"EntityPrimedCharge"), EntityPrimedCharge.class, "EntityPrimedCharge", Config.entityPrimedChargeId, EnderZoo.instance, 64, 100, false); if (!Config.confusingChargeEnabled) { return null; } BlockConfusingCharge res = new BlockConfusingCharge(); res.init(); return res; }
Example 7
Source File: ItemOwlEgg.java From EnderZoo with Creative Commons Zero v1.0 Universal | 5 votes |
public static ItemOwlEgg create() { EntityRegistry.registerModEntity(new ResourceLocation(EnderZoo.MODID,"EntityOwlEgg"), EntityOwlEgg.class, "EntityOwlEgg", Config.entityOwlEggId, EnderZoo.instance, 64, 10, true); ItemOwlEgg res = new ItemOwlEgg(); res.init(); return res; }
Example 8
Source File: EntityHelper.java From Moo-Fluids with GNU General Public License v3.0 | 5 votes |
public static void registerEntity(final Class<? extends Entity> entityClass, final String entityName, final int trackingRange, final int updateFrequency, final boolean sendsVelocityUpdates, final int eggPrimary, final int eggSecondary) { EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.MOD_ID, entityName), entityClass, ModInformation.MOD_ID + "." + entityName, getRegisteredEntityId(), MooFluids.getInstance(), trackingRange, updateFrequency, sendsVelocityUpdates, eggPrimary, eggSecondary); }
Example 9
Source File: EntityVampireBat.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntityVampireBat.class, NAME, entityId, ToroQuest.INSTANCE, 60, 2, true, 0x2015, 0x909090); }
Example 10
Source File: ENEntities.java From ExNihiloAdscensio with MIT License | 4 votes |
public static void init() { EntityRegistry.registerModEntity(ProjectileStone.class, "Thrown Stone", 0, ExNihiloAdscensio.instance, 64, 10, true); }
Example 11
Source File: EntityRainbowGuard.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntityRainbowGuard.class, NAME, entityId, ToroQuest.INSTANCE, 90, 2, true, 0xffffff, 0x909090); }
Example 12
Source File: RegistryHandler.java From EnderZoo with Creative Commons Zero v1.0 Universal | 4 votes |
private void registerEntity(MobInfo mob) { EntityRegistry.registerModEntity(new ResourceLocation(EnderZoo.MODID, mob.getName()), mob.getClz(), mob.getName(), mob.getEntityId(), EnderZoo.instance, 64, 3, true); }
Example 13
Source File: EntityMage.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntityMage.class, NAME, entityId, ToroQuest.INSTANCE, 60, 2, true, 0xff3024, 0xe0d6b9); }
Example 14
Source File: EntitySentry.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntitySentry.class, NAME, entityId, ToroQuest.INSTANCE, 80, 2, true, 0x3f3024, 0xe0d6b9); }
Example 15
Source File: EntityFugitive.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntityFugitive.class, NAME, entityId, ToroQuest.INSTANCE, 60, 2, true, 0x000000, 0xe0d6b9); }
Example 16
Source File: EntityVillageLord.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
public static void init(int entityId) { EntityRegistry.registerModEntity(new ResourceLocation(ToroQuest.MODID, NAME), EntityVillageLord.class, NAME, entityId, ToroQuest.INSTANCE, 60, 2, true, 0xeca58c, 0xba12c8); }
Example 17
Source File: CommonProxy.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
private void registerEntity(Class<? extends Entity> entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) { String prefixedName = Reference.MOD_ID + "." + entityName; ResourceLocation registryName = new ResourceLocation(Reference.MOD_ID, entityName); EntityRegistry.registerModEntity(registryName, entityClass, prefixedName, id, mod, trackingRange, updateFrequency, sendsVelocityUpdates); }
Example 18
Source File: ModEntities.java From Wizardry with GNU Lesser General Public License v3.0 | 4 votes |
public static void registerEntity(ResourceLocation loc, Class<? extends Entity> entityClass, String entityName, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) { EntityRegistry.registerModEntity(loc, entityClass, entityName, i, Wizardry.instance, trackingRange, updateFrequency, sendsVelocityUpdates); i++; }
Example 19
Source File: MetaEntities.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
public static void init() { EntityRegistry.registerModEntity(new ResourceLocation(GTValues.MODID, "dynamite"), DynamiteEntity.class, "Dynamite", 1, GregTechMod.instance, 64, 3, true); }
Example 20
Source File: PLEntity.java From Production-Line with MIT License | 4 votes |
public static void registerEntities(Class<? extends Entity> entity, String name) { EntityRegistry.registerModEntity(entity, name, id++, ProductionLine.getInstance(), 64, 1, true); }