Jump to content

Recommended Posts

Posted

for some reason the CommonProxy class doesnt seem to be registering right.

 

here the logs for the error

 

 

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader] Attempted to load a proxy type mods.mochickens.proxies.CommonProxyMoChickens into mods.mochickens.MoChickens.proxy, but the types don't match

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader] An error occured trying to load a proxy into {clientSide=mods.mochickens.client.ClientProxyMoChickens, serverSide=mods.mochickens.proxies.CommonProxyMoChickens}.mods.mochickens.MoChickens

cpw.mods.fml.common.LoaderException

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:68)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader]

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.3.883} [Forge Mod Loader] (bin) Unloaded->Constructed

Forge{9.11.0.883} [Minecraft Forge] (bin) Unloaded->Constructed

mochickens{1.0} [Mo' Chickens] (bin) Unloaded->Errored

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-11-27 11:59:21 [sEVERE] [ForgeModLoader] Caught exception from mochickens

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: cpw.mods.fml.common.LoaderException

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:68)

... 28 more

2013-11-27 11:59:21 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-11-27 11:59:21 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

2013-11-27 11:59:21 [iNFO] [sTDERR] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)

2013-11-27 11:59:21 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)

2013-11-27 11:59:21 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-11-27 11:59:21 [iNFO] [sTDERR] Caused by: cpw.mods.fml.common.LoaderException

2013-11-27 11:59:21 [iNFO] [sTDERR] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:68)

2013-11-27 11:59:21 [iNFO] [sTDERR] ... 28 more

2013-11-27 11:59:21 [sEVERE] [Minecraft-Server] Encountered an unexpected exception LoaderException

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:69)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: cpw.mods.fml.common.LoaderException

at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:68)

... 28 more

 

 

 

Main Class:

package mods.mochickens;

import java.util.List;

import mods.mochickens.client.ClientProxyMoChickens;
import mods.mochickens.misc.SoundEvents;
import mods.mochickens.mobs.EntityCoalChicken;
import mods.mochickens.mobs.EntityCookieChicken;
import mods.mochickens.mobs.EntityDiamondChicken;
import mods.mochickens.mobs.EntityEmeraldChicken;
import mods.mochickens.mobs.EntityEnderChicken;
import mods.mochickens.mobs.EntityGiantChicken;
import mods.mochickens.mobs.EntityGoldChicken;
import mods.mochickens.mobs.EntityIronChicken;
import mods.mochickens.mobs.EntityLapisChicken;
import mods.mochickens.mobs.EntityRedstoneChicken;
import mods.mochickens.mobs.EntitySkeletonChicken;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "mochickens", name = "Mo' Chickens", version = "1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class MoChickens {

@SidedProxy(clientSide = "mods.mochickens.client.ClientProxyMoChickens",
			serverSide = "mods.mochickens.proxies.CommonProxyMoChickens")
public static ClientProxyMoChickens proxy;

@Instance("mochickens")
public static MoChickens instance;

int diamondChickenEggID;
int coalChickenEggID;
int ironChickenEggID;
int redstoneChickenEggID;
int lapisChickenEggID;
int emeraldChickenEggID;
int goldChickenEggID;
int skeletonChickenEggID;
int enderChickenEggID;
int cookieChickenEggID;
int giantChickenEggID;

static int startEntityId = 300;

@EventHandler
public void preInit(FMLPreInitializationEvent event) {

	Configuration config = new Configuration(event.getSuggestedConfigurationFile());

	diamondChickenEggID = config.get("Egg IDs", "Diamond Chicken Egg ID", 514).getInt();
	coalChickenEggID = config.get("Egg IDs", "Coal Chicken Egg ID", 515).getInt();
	ironChickenEggID = config.get("Egg IDs", "Iron Chicken Egg ID", 516).getInt();
	redstoneChickenEggID = config.get("Egg IDs", "Redstone Chicken Egg ID", 517).getInt();
	lapisChickenEggID = config.get("Egg IDs", "Lapis Chicken Egg ID", 518).getInt();
	emeraldChickenEggID = config.get("Egg IDs", "Emerald Chicken Egg ID", 519).getInt();
	goldChickenEggID = config.get("Egg IDs", "Gold Chicken Egg ID", 520).getInt();
	skeletonChickenEggID = config.get("Egg IDs", "Skeleton Chicken Egg ID", 521).getInt();
	enderChickenEggID = config.get("Egg IDs", "Ender Chicken Egg ID", 522).getInt();
	cookieChickenEggID = config.get("Egg IDs", "Cookie Chicken Egg ID", 522).getInt();
	giantChickenEggID = config.get("Egg IDs", "Giant Chicken Egg ID", 522).getInt();

	config.save();
	proxy.registerSounds();

}

@EventHandler
public void load(FMLInitializationEvent event){

	languageRegisters();
	entityRegisters();
	entitySpawns();
	EggRegisters();

	proxy.registerRenders();

}

// Add Spawn Egg
public static int getUniqueEntityID() {
	do {
		startEntityId++;
	} while(EntityList.getStringFromID(startEntityId) != null);
	return startEntityId;
}

public static void registerEntityEgg(Class <? extends Entity> entity, int primaryColor, int secondaryColor) {
	int id = getUniqueEntityID();
	EntityList.IDtoClassMapping.put(id, entity);
	EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
}

public void EggRegisters() {
	registerEntityEgg(EntityDiamondChicken.class, 0xa8e2e2, 0x000000);
	registerEntityEgg(EntityCoalChicken.class, 0x2e2e2e, 0x000000);
	registerEntityEgg(EntityIronChicken.class, 0xd7d0b2, 0x000000);
	registerEntityEgg(EntityGoldChicken.class, 0xccda2b, 0x000000);
	registerEntityEgg(EntityLapisChicken.class, 0x4b4bcc, 0x000000);
	registerEntityEgg(EntityRedstoneChicken.class, 0xff6464, 0x000000);
	registerEntityEgg(EntityEmeraldChicken.class, 0x06cc01, 0x000000);
	registerEntityEgg(EntitySkeletonChicken.class, 0xFFFFFF, 0x000000);
	registerEntityEgg(EntityEnderChicken.class, 0x000000, 0x797979);
	registerEntityEgg(EntityCookieChicken.class, 0xe79042, 0x000000);
	registerEntityEgg(EntityGiantChicken.class, 0xe2e2e2, 0x000000);
}

//Add Mobs
public void entityRegisters() {
	EntityRegistry.registerModEntity(EntityDiamondChicken.class,"DiamondChicken", 500, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityCoalChicken.class,"CoalChicken", 501, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityIronChicken.class,"IronChicken", 502, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityGoldChicken.class,"GoldChicken", 503, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityLapisChicken.class,"LapisChicken", 504, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityRedstoneChicken.class,"RedstoneChicken", 505, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityEmeraldChicken.class,"EmeraldChicken", 506, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntitySkeletonChicken.class,"SkeletonChicken", 507, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityEnderChicken.class,"EnderChicken", 508, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityCookieChicken.class,"CookieChicken", 509, this , 40, 3, true);
	EntityRegistry.registerModEntity(EntityGiantChicken.class,"GiantChicken", 510, this , 40, 3, true);
}

//Add Spawns
public void entitySpawns() {
	EntityRegistry.addSpawn(EntityDiamondChicken.class, 5, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityCoalChicken.class, 10, 1, 5, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityIronChicken.class, 9, 1, 3, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityGoldChicken.class, 7, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityLapisChicken.class, 7, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityRedstoneChicken.class, 6, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityEmeraldChicken.class, 5, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntitySkeletonChicken.class, 10, 1, 2, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityEnderChicken.class, 3, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityEnderChicken.class, 10, 1, 2, EnumCreatureType.creature, BiomeGenBase.sky);
	EntityRegistry.addSpawn(EntityCookieChicken.class, 6, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
	EntityRegistry.addSpawn(EntityGiantChicken.class, 4, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
}

private static void languageRegisters() {
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.DiamondChicken.name", "Diamond Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.CoalChicken.name", "Coal Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.IronChicken.name", "Iron Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.GoldChicken.name", "Gold Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.LapisChicken.name", "Lapis Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.RedstoneChicken.name", "Redstone Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.EmeraldChicken.name", "Emerald Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.SkeletonChicken.name", "Skeleton Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.EnderChicken.name", "Ender Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.CookieChicken.name", "Cookie Chicken");
	LanguageRegistry.instance().addStringLocalization("entity.mochickens.GiantChicken.name", "Giant Chicken");
}


}

 

Common Proxy:

package mods.mochickens.proxies;

import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

public class CommonProxyMoChickens {

public void registerRenders(){

}

}

 

i have a feeling im missing something in the CommonProxy class, but i dont know what it is.

Posted

Change this line:

public static ClientProxyMoChickens proxy;

to

public static CommonProxyMoChickens proxy;

And show us the ClientProxy class

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

ok, after watching ScrtchForFun's tutorial on proxies and taking your reply into account, it has been fixed. all i had to do was change it from ClientProxyMoChickens to CommonProxMoChickens. thanks for your help!

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.