Hello all,
I started updating my mod, and I ran into some problems:
1. My Custom Fire Block
this.abilityToCatchFire = Block.blockFlammability; //Cannot be resolved/not a field (blockFlammability)
this.chanceToEncourageFire = Block.blockFireSpreadSpeed;//Cannot be resolved/not a field //(blockFireSpreadSpeed)
setBurnRate(Blocks.planks, 5, 20); // Change Method setBurnRate(int, int, int) to (Block, int, int)
private void setBurnRate(int par1, int par2, int par3)
{
Block.setBurnProperties(par1, par2, par3); //Undefined for type Block
}
Or would it be easier to recode it? If so, how? It is for my dimension.
[[14:21:07] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[14:21:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:21:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[14:21:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:21:09] [main/INFO]: Setting user: Player487
[14:21:11] [Client thread/INFO]: LWJGL Version: 2.9.0
[14:21:11] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[14:21:11] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1024 Initialized
[14:21:11] [Client thread/INFO] [FML]: Replaced 128 ore recipies
[14:21:11] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[14:21:12] [Client thread/INFO] [FML]: Searching E:\Julius\Minecraft\MCP-1.7.2\eclipse\mods for mods
[14:21:13] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[14:21:16] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[14:21:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Cars and Drives
[14:21:17] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[14:21:19] [Sound Library Loader/INFO]: Sound engine started
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_167_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_167_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_168_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_168_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:20] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[14:21:20] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[14:21:20] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[14:21:23] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[14:21:56] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
[14:21:56] [Server thread/INFO]: Generating keypair
[14:21:56] [Server thread/INFO] [FML]: Injecting new block and item data into this server instance
[14:21:57] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO]: Preparing start region for level 0
[14:21:58] [Server thread/INFO]: Preparing spawn area: 31%
[14:21:59] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[14:21:59] [Netty IO #1/INFO] [FML]: Client protocol version 1
[14:21:59] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[14:21:59] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[14:21:59] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[14:21:59] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[14:21:59] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[14:21:59] [Server thread/INFO]: Player487[local:E:9db065a4] logged in with entity id 255 at (253.31806560634453, 63.0, 136.77451743320538)
[14:21:59] [Server thread/INFO]: Player487 joined the game
[14:22:05] [Server thread/INFO]: Player487 has just earned the achievement [Taking Inventory]
[14:22:06] [Client thread/INFO]: [CHAT] Player487 has just earned the achievement [Taking Inventory]
[14:22:07] [Server thread/INFO]: Stopping server
[14:22:07] [Server thread/INFO]: Saving players
[14:22:07] [Server thread/INFO]: Saving worlds
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension 0
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension -1
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension 1
[14:22:09] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Rendering item
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1239) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1064) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NullPointerException
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266) ~[ItemStack.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421) ~[RenderItem.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565) ~[RenderItem.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972) ~[GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800) ~[GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111) ~[GuiContainer.class:?]
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) ~[InventoryEffectRenderer.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678) ~[GuiContainerCreative.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209) ~[EntityRenderer.class:?]
... 9 more
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 21.04.14 14:22
Description: Rendering item
java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1064)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:112)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)
-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_25, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 726612520 bytes (692 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 12926 (723856 bytes; 0 MB) allocated, 2521 (141176 bytes; 0 MB) used
IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
carsanddrives{1.0.4} [Cars and Drives] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: GeForce 410M/PCI/SSE2 GL version 4.1.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 12619 (706664 bytes; 0 MB) allocated, 1202 (67312 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# E:\Julius\Minecraft\MCP-1.7.2\eclipse\.\crash-reports\crash-2014-04-21_14.22.09-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
My Code:
public static CreativeTabs tabCarsandDrivesMod = new CreativeTabs("tabCarsandDrivesMod")
{
public Item getTabIconItem()
{
return Items.nether_star;
}
};
This is at the start of my class, before all item declarations.
6. My Custom Furnace:
Recipes Class
package RobbiBlechdoseMod.Basis.GeneratorBlock;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import RobbiBlechdoseMod.Basis.Basis;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class GeneratorRecipes
{
private static final GeneratorRecipes smeltingBase = new GeneratorRecipes();
/** The list of smelting results. */
private Map smeltingList = new HashMap();
private Map experienceList = new HashMap();
private HashMap<List<Integer>, ItemStack> metaSmeltingList = new HashMap<List<Integer>, ItemStack>();
private HashMap<List<Integer>, Float> metaExperience = new HashMap<List<Integer>, Float>();
/**
* Used to call methods addSmelting and getSmeltingResult.
*/
public static final GeneratorRecipes smelting()
{
return smeltingBase;
}
private GeneratorRecipes()
{
this.addSmelting(Basis.EmptyBattery.itemID, new ItemStack(Basis.Batterie), 0.0F);
}
/**
* Adds a smelting recipe.
*/
public void addSmelting(int par1, ItemStack par2ItemStack, float par3)
{
this.smeltingList.put(Integer.valueOf(par1), par2ItemStack);
this.experienceList.put(Integer.valueOf(par2ItemStack.itemID), Float.valueOf(par3));
}
/**
* Returns the smelting result of an item.
* Deprecated in favor of a metadata sensitive version
*/
@Deprecated
public ItemStack getSmeltingResult(int par1)
{
return (ItemStack)this.smeltingList.get(Integer.valueOf(par1));
}
public Map getSmeltingList()
{
return this.smeltingList;
}
@Deprecated //In favor of ItemStack sensitive version
public float getExperience(int par1)
{
return this.experienceList.containsKey(Integer.valueOf(par1)) ? ((Float)this.experienceList.get(Integer.valueOf(par1))).floatValue() : 0.0F;
}
/**
* A metadata sensitive version of adding a furnace recipe.
*/
public void addSmelting(int itemID, int metadata, ItemStack itemstack, float experience)
{
metaSmeltingList.put(Arrays.asList(itemID, metadata), itemstack);
metaExperience.put(Arrays.asList(itemstack.itemID, itemstack.getItemDamage()), experience);
}
/**
* Used to get the resulting ItemStack form a source ItemStack
* @param item The Source ItemStack
* @return The result ItemStack
*/
public ItemStack getSmeltingResult(ItemStack item)
{
if (item == null)
{
return null;
}
ItemStack ret = (ItemStack)metaSmeltingList.get(Arrays.asList(item.itemID, item.getItemDamage()));
if (ret != null)
{
return ret;
}
return (ItemStack)smeltingList.get(Integer.valueOf(item.itemID));
}
/**
* Grabs the amount of base experience for this item to give when pulled from the furnace slot.
*/
public float getExperience(ItemStack item)
{
if (item == null || item.getItem() == null)
{
return 0;
}
float ret = item.getItem().getSmeltingExperience(item);
if (ret < 0 && metaExperience.containsKey(Arrays.asList(item.itemID, item.getItemDamage())))
{
ret = metaExperience.get(Arrays.asList(item.itemID, item.getItemDamage()));
}
if (ret < 0 && experienceList.containsKey(item.itemID))
{
ret = ((Float)experienceList.get(item.itemID)).floatValue();
}
return (ret < 0 ? 0 : ret);
}
public Map<List<Integer>, ItemStack> getMetaSmeltingList()
{
return metaSmeltingList;
}
}
Gui Class
package RobbiBlechdoseMod.Basis.GeneratorBlock;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import RobbiBlechdoseMod.Basis.TileEntity.TileEntityGeneratorEntity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class GuiGenerator extends GuiContainer
{
private static final ResourceLocation furnaceGuiTextures = new ResourceLocation("RobbiBlechdoseMod:textures/gui/guigen.png");
private TileEntityGeneratorEntity furnaceInventory;
public GuiGenerator(InventoryPlayer par1InventoryPlayer, TileEntityGeneratorEntity par2TileEntityFurnace)
{
super(new ContainerGenerator(par1InventoryPlayer, par2TileEntityFurnace));
this.furnaceInventory = par2TileEntityFurnace;
}
/**
* Draw the foreground layer for the GuiContainer (everything in front of the items)
*/
protected void drawGuiContainerForegroundLayer(int par1, int par2)
{
String s = this.furnaceInventory.isInvNameLocalized() ? this.furnaceInventory.getInvName() : I18n.getString(this.furnaceInventory.getInvName());
this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);
this.fontRendererObj.drawString(I18n.getString("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
}
/**
* Draw the background layer for the GuiContainer (everything behind the items)
*/
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(furnaceGuiTextures);
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
int i1;
if (this.furnaceInventory.isBurning())
{
i1 = this.furnaceInventory.getBurnTimeRemainingScaled(12);
this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2);
}
i1 = this.furnaceInventory.getCookProgressScaled(24);
this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16);
}
}
Slot Class:
package RobbiBlechdoseMod.Basis.GeneratorBlock;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.AchievementList;
import net.minecraft.util.MathHelper;
import cpw.mods.fml.common.registry.GameRegistry;
public class SlotGenerator extends Slot
{
/** The player that is using the GUI where this slot resides. */
private EntityPlayer thePlayer;
private int field_75228_b;
public SlotGenerator(EntityPlayer par1EntityPlayer, IInventory par2IInventory, int par3, int par4, int par5)
{
super(par2IInventory, par3, par4, par5);
this.thePlayer = par1EntityPlayer;
}
/**
* Check if the stack is a valid item for this slot. Always true beside for the armor slots.
*/
public boolean isItemValid(ItemStack par1ItemStack)
{
return false;
}
/**
* Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new
* stack.
*/
public ItemStack decrStackSize(int par1)
{
if (this.getHasStack())
{
this.field_75228_b += Math.min(par1, this.getStack().stackSize);
}
return super.decrStackSize(par1);
}
public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
{
this.onCrafting(par2ItemStack);
super.onPickupFromSlot(par1EntityPlayer, par2ItemStack);
}
/**
* the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an
* internal count then calls onCrafting(item).
*/
protected void onCrafting(ItemStack par1ItemStack, int par2)
{
this.field_75228_b += par2;
this.onCrafting(par1ItemStack);
}
/**
* the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
*/
protected void onCrafting(ItemStack par1ItemStack)
{
par1ItemStack.onCrafting(this.thePlayer.worldObj, this.thePlayer, this.field_75228_B);
if (!this.thePlayer.worldObj.isRemote)
{
int i = this.field_75228_b;
float f = GeneratorRecipes.smelting().getExperience(par1ItemStack);
int j;
if (f == 0.0F)
{
i = 0;
}
else if (f < 1.0F)
{
j = MathHelper.floor_float((float)i * f);
if (j < MathHelper.ceiling_float_int((float)i * f) && (float)Math.random() < (float)i * f - (float)j)
{
++j;
}
i = j;
}
while (i > 0)
{
j = EntityXPOrb.getXPSplit(i);
i -= j;
this.thePlayer.worldObj.spawnEntityInWorld(new EntityXPOrb(this.thePlayer.worldObj, this.thePlayer.posX, this.thePlayer.posY + 0.5D, this.thePlayer.posZ + 0.5D, j));
}
}
this.field_75228_b = 0;
GameRegistry.onItemSmelted(thePlayer, par1ItemStack);
if (par1ItemStack.itemID == Item.ingotIron.itemID)
{
this.thePlayer.addStat(AchievementList.acquireIron, 1);
}
if (par1ItemStack.itemID == Item.fishCooked.itemID)
{
this.thePlayer.addStat(AchievementList.cookFish, 1);
}
}
}
I won't list all errors here, it would take too long. Forgive me please.
Well, I've been working on finding all the blocks that are given and I made my own using Block.blocksRegistry… It's really hard but usable and it works like a charm:
public static Block[] blocksList = new Block[4095];
public void initBlocksList()
{
for(int i = 0; i < 4095; i++)
{
Block block = Block.getBlockById(i);
if(block != null && block != Blocks.air)
{
blocksList[i] = block;
}
}
}
There is no need whatsoever for an equivalent to Block.blocksList[] anymore; simply access the block directly via Blocks.someBlock, or YourMod.yourModBlock, etc.
For example, if you had something like "Block.blocksList[Block.grass.blockID]" before, you can just put "Blocks.grass". If you were using an integer directly, then you'll just have to figure out which block that integer was supposed to be.
As for your custom Fire block, why don't you look in the vanilla fire block and see what those values have become?
Ok, I fixed the problem with Block.blocksList[] (it had world.getBlock(x,y,z) in there, I just needed to remove the Block.blocksList[]).
Custom Fire Block is solved, too.
Doesn't do anything at all.
But thanks for trying.
Robbi Blechdose
Are you sure the crash is caused by the creative tab icon, and not the items IN the creative tab? Try it without any items in the tab, and see if it still crashes. Do you have only one tab, or multiple tabs? Perhaps one of the others is crashing.
I recommend also creating a real class for your tab, rather than doing it in-line like that; it's cleaner, easier to read, and easier to debug.
// declare and initialize the tab in another class:
public static CreativeTabs tabMisc = new ZSSTabMisc(CreativeTabs.getNextID(), "zssTabMisc");
// a sample tab class:
public class ZSSTabMisc extends CreativeTabs
{
public ZSSTabMisc(String label) {
super(label);
}
public ZSSTabMisc(int index, String label) {
super(index, label);
}
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem() {
return ZSSItems.pendant;
}
@Override
public String getTranslatedTabLabel() {
return StatCollector.translateToLocal("creativetab.zss.misc");
}
}
Oh, I forgot to say, it only crashes when I try to acess the tab, so if I l click the ">" button, it crashes.
I also tried my car item. It doesn't work either.
I used the code coolAlias gave here.
The main class part is in my main class before everything, just after @Mod and @Instance.
Robbi Blechdose
Sounds like a static initializer problem: your tab is getting initialized first, before any Items or anything else are actually loaded into the game, so the icon is pointing to a null Item.
There are 2 solutions:
1. Easiest is to declare and initialize your tab separately:
// declare:
public static CreativeTab yourTab;
// initialize:
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
yourTab = new CustomCreativeTab(id, label);
// other code
}
2. More work, but you get to keep them all as one line: move your creative tabs to a separate class file, so they don't get initialized until your Items start initializing and trying to access them.
Robbi, surely you've asked for help enough times now to know that saying "it doesn't work" is not conducive to receiving useful assistance, because we have no way to tell you what is wrong with such a non-descriptive remark.
Adding exclamation marks or using all caps when you "bump" is not necessary and gives off the wrong impression, at least for me. Sure, you need help, but the tone of "BUMP!" vs. "Hey guys, I still need help. Here is exactly what is going wrong and the related code." is very different, with the former likely to get ignored, and the latter more likely to result in useful assistance. Just some friendly advice.
Oh ok.
So, it is still the same error log as in the OP.
I didn't really know what you meant with your second idea, and so I tried the first one,
but it didn't work. Still the same error .
BTW, what does the "getTranslatedLabel" method do?
And what is the syntax (you used) for the return string in there?
I started updating my mod, and I ran into some problems:
1. My Custom Fire Block
Or would it be easier to recode it? If so, how? It is for my dimension.
2. What is the old Block.blockslist[] now?
3. What do I replace with?
Solution: It is now
4. My Chunk Provider: I get an "method is undefined for the type ..." error on the ".generate":
5.My Creative Tab: I always get that error:
[[14:21:07] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[14:21:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:21:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[14:21:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:21:09] [main/INFO]: Setting user: Player487
[14:21:11] [Client thread/INFO]: LWJGL Version: 2.9.0
[14:21:11] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[14:21:11] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1024 Initialized
[14:21:11] [Client thread/INFO] [FML]: Replaced 128 ore recipies
[14:21:11] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[14:21:12] [Client thread/INFO] [FML]: Searching E:\Julius\Minecraft\MCP-1.7.2\eclipse\mods for mods
[14:21:13] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[14:21:16] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[14:21:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Cars and Drives
[14:21:17] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[14:21:19] [Sound Library Loader/INFO]: Sound engine started
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_167_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_167_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:19] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_168_null.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_168_null.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[14:21:20] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[14:21:20] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[14:21:20] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[14:21:23] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[14:21:56] [Server thread/INFO]: Starting integrated minecraft server version 1.7.2
[14:21:56] [Server thread/INFO]: Generating keypair
[14:21:56] [Server thread/INFO] [FML]: Injecting new block and item data into this server instance
[14:21:57] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@76d88e23)
[14:21:57] [Server thread/INFO]: Preparing start region for level 0
[14:21:58] [Server thread/INFO]: Preparing spawn area: 31%
[14:21:59] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[14:21:59] [Netty IO #1/INFO] [FML]: Client protocol version 1
[14:21:59] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[14:21:59] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[14:21:59] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[14:21:59] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[14:21:59] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[14:21:59] [Server thread/INFO]: Player487[local:E:9db065a4] logged in with entity id 255 at (253.31806560634453, 63.0, 136.77451743320538)
[14:21:59] [Server thread/INFO]: Player487 joined the game
[14:22:05] [Server thread/INFO]: Player487 has just earned the achievement [Taking Inventory]
[14:22:06] [Client thread/INFO]: [CHAT] Player487 has just earned the achievement [Taking Inventory]
[14:22:07] [Server thread/INFO]: Stopping server
[14:22:07] [Server thread/INFO]: Saving players
[14:22:07] [Server thread/INFO]: Saving worlds
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[14:22:07] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension 0
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension -1
[14:22:08] [Server thread/INFO] [FML]: Unloading dimension 1
[14:22:09] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Rendering item
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1239) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1064) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.NullPointerException
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266) ~[ItemStack.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421) ~[RenderItem.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565) ~[RenderItem.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972) ~[GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800) ~[GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111) ~[GuiContainer.class:?]
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) ~[InventoryEffectRenderer.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678) ~[GuiContainerCreative.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209) ~[EntityRenderer.class:?]
... 9 more
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 21.04.14 14:22
Description: Rendering item
java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1064)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:112)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:266)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:421)
-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:565)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:972)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:800)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678)
-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
Mouse location: Scaled: (295, 5). Absolute: (590, 468)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player487'/255, l='MpServer', x=253,95, y=64,62, z=136,69]]
Chunk stats: MultiplayerChunkCache: 225, 225
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (199,64,179), Chunk: (at 7,4,3 in 12,11; contains blocks 192,0,176 to 207,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2297 game time, 2297 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 111 total; [EntityItem['item.item.seeds'/1373, l='MpServer', x=286,91, y=64,13, z=166,81], EntityClientPlayerMP['Player487'/255, l='MpServer', x=253,95, y=64,62, z=136,69], EntitySkeleton['Skeleton'/63, l='MpServer', x=180,53, y=31,00, z=175,91], EntityZombie['Zombie'/62, l='MpServer', x=191,50, y=32,00, z=160,01], EntityCreeper['Creeper'/71, l='MpServer', x=200,41, y=45,00, z=78,00], EntitySkeleton['Skeleton'/64, l='MpServer', x=178,47, y=31,00, z=176,06], EntitySkeleton['Skeleton'/65, l='MpServer', x=182,50, y=33,00, z=188,16], EntityZombie['Zombie'/76, l='MpServer', x=194,50, y=30,00, z=159,50], EntitySquid['Squid'/72, l='MpServer', x=196,50, y=52,00, z=110,25], EntitySkeleton['Skeleton'/73, l='MpServer', x=199,31, y=19,99, z=120,31], EntityCreeper['Creeper'/74, l='MpServer', x=192,93, y=19,00, z=123,96], EntityCreeper['Creeper'/75, l='MpServer', x=191,99, y=19,19, z=123,22], EntitySkeleton['Skeleton'/93, l='MpServer', x=221,31, y=20,26, z=115,69], EntitySkeleton['Skeleton'/92, l='MpServer', x=218,72, y=20,00, z=117,56], EntityZombie['Zombie'/95, l='MpServer', x=214,66, y=44,00, z=153,06], EntitySkeleton['Skeleton'/94, l='MpServer', x=220,50, y=29,00, z=115,50], EntitySkeleton['Skeleton'/103, l='MpServer', x=213,44, y=18,03, z=201,20], EntityBat['Bat'/100, l='MpServer', x=225,54, y=45,77, z=200,43], EntitySkeleton['Skeleton'/101, l='MpServer', x=221,31, y=42,00, z=200,99], EntitySkeleton['Skeleton'/98, l='MpServer', x=213,30, y=13,00, z=207,30], EntityZombie['Zombie'/99, l='MpServer', x=210,47, y=21,00, z=197,78], EntityCreeper['Creeper'/96, l='MpServer', x=213,50, y=44,00, z=149,00], EntityItem['item.tile.sandStone.default'/97, l='MpServer', x=222,53, y=61,13, z=162,41], EntityZombie['Zombie'/110, l='MpServer', x=229,59, y=15,00, z=96,47], EntitySkeleton['Skeleton'/111, l='MpServer', x=234,69, y=26,00, z=99,47], EntitySkeleton['Skeleton'/109, l='MpServer', x=237,50, y=30,00, z=94,50], EntityBat['Bat'/105, l='MpServer', x=213,16, y=17,10, z=215,59], EntityZombie['Zombie'/119, l='MpServer', x=231,92, y=46,00, z=201,35], EntitySkeleton['Skeleton'/118, l='MpServer', x=232,97, y=47,00, z=188,63], EntityZombie['Zombie'/117, l='MpServer', x=236,50, y=29,00, z=109,50], EntityZombie['Zombie'/116, l='MpServer', x=226,44, y=16,00, z=98,44], EntityCreeper['Creeper'/115, l='MpServer', x=234,06, y=27,00, z=104,47], EntitySkeleton['Skeleton'/114, l='MpServer', x=235,69, y=28,00, z=98,31], EntitySkeleton['Skeleton'/113, l='MpServer', x=234,97, y=26,00, z=104,34], EntitySkeleton['Skeleton'/112, l='MpServer', x=237,50, y=22,00, z=107,03], EntitySquid['Squid'/127, l='MpServer', x=249,75, y=39,97, z=101,81], EntitySkeleton['Skeleton'/126, l='MpServer', x=241,13, y=27,00, z=101,50], EntityCreeper['Creeper'/123, l='MpServer', x=233,00, y=34,00, z=206,63], EntitySpider['Spider'/122, l='MpServer', x=229,94, y=32,00, z=210,34], EntityZombie['Zombie'/121, l='MpServer', x=236,13, y=45,00, z=195,44], EntityZombie['Zombie'/120, l='MpServer', x=231,88, y=45,00, z=195,53], EntitySquid['Squid'/129, l='MpServer', x=255,94, y=38,34, z=111,91], EntitySquid['Squid'/128, l='MpServer', x=249,94, y=39,38, z=114,41], EntitySquid['Squid'/131, l='MpServer', x=259,36, y=38,74, z=108,98], EntitySquid['Squid'/130, l='MpServer', x=262,83, y=36,88, z=115,12], EntityZombie['Zombie'/132, l='MpServer', x=242,09, y=48,00, z=191,50], EntitySquid['Squid'/152, l='MpServer', x=257,08, y=41,16, z=119,65], EntitySquid['Squid'/153, l='MpServer', x=261,49, y=39,12, z=119,47], EntityZombie['Zombie'/154, l='MpServer', x=271,31, y=50,00, z=125,84], EntityZombie['Zombie'/155, l='MpServer', x=266,50, y=13,00, z=193,50], EntityCreeper['Creeper'/156, l='MpServer', x=260,78, y=47,00, z=210,13], EntitySkeleton['Skeleton'/157, l='MpServer', x=266,47, y=47,00, z=193,96], EntitySkeleton['Skeleton'/158, l='MpServer', x=259,50, y=48,00, z=202,50], EntityZombie['Zombie'/144, l='MpServer', x=264,50, y=21,00, z=67,50], EntitySquid['Squid'/145, l='MpServer', x=263,16, y=45,31, z=88,31], EntityBat['Bat'/146, l='MpServer', x=264,51, y=25,51, z=105,53], EntityBat['Bat'/147, l='MpServer', x=256,25, y=29,10, z=123,75], EntityCreeper['Creeper'/148, l='MpServer', x=265,53, y=25,00, z=115,00], EntitySquid['Squid'/149, l='MpServer', x=257,11, y=39,41, z=121,50], EntitySquid['Squid'/150, l='MpServer', x=263,50, y=38,31, z=117,44], EntitySquid['Squid'/151, l='MpServer', x=265,88, y=40,34, z=112,28], EntityBat['Bat'/171, l='MpServer', x=282,77, y=13,12, z=99,58], EntityCreeper['Creeper'/170, l='MpServer', x=274,50, y=17,00, z=80,50], EntityCreeper['Creeper'/169, l='MpServer', x=272,50, y=17,00, z=79,50], EntityCreeper['Creeper'/175, l='MpServer', x=273,47, y=50,00, z=126,69], EntityZombie['Zombie'/174, l='MpServer', x=272,50, y=50,00, z=125,75], EntityBat['Bat'/173, l='MpServer', x=274,54, y=18,81, z=94,54], EntityCreeper['Creeper'/172, l='MpServer', x=266,57, y=24,00, z=110,55], EntitySheep['Sheep'/161, l='MpServer', x=267,50, y=74,00, z=216,50], EntityZombie['Zombie'/160, l='MpServer', x=257,31, y=48,00, z=210,09], EntityBat['Bat'/186, l='MpServer', x=309,18, y=30,77, z=149,77], EntitySkeleton['Skeleton'/187, l='MpServer', x=295,44, y=35,00, z=168,13], EntityZombie['Zombie'/184, l='MpServer', x=292,59, y=56,00, z=148,00], EntitySheep['Sheep'/185, l='MpServer', x=290,38, y=66,00, z=156,53], EntitySheep['Sheep'/190, l='MpServer', x=297,53, y=63,00, z=181,44], EntityBat['Bat'/191, l='MpServer', x=299,44, y=49,82, z=177,67], EntitySkeleton['Skeleton'/188, l='MpServer', x=288,94, y=33,00, z=166,41], EntityBat['Bat'/189, l='MpServer', x=297,65, y=32,64, z=157,88], EntityCreeper['Creeper'/178, l='MpServer', x=286,41, y=33,00, z=167,00], EntitySheep['Sheep'/179, l='MpServer', x=283,06, y=63,00, z=172,91], EntityBat['Bat'/176, l='MpServer', x=285,37, y=24,04, z=169,33], EntitySpider['Spider'/177, l='MpServer', x=281,09, y=32,00, z=174,00], EntityBat['Bat'/183, l='MpServer', x=290,54, y=34,16, z=165,71], EntitySheep['Sheep'/180, l='MpServer', x=281,47, y=65,00, z=169,88], EntitySheep['Sheep'/181, l='MpServer', x=285,50, y=70,00, z=161,67], EntitySheep['Sheep'/205, l='MpServer', x=308,53, y=71,00, z=143,50], EntitySheep['Sheep'/204, l='MpServer', x=309,50, y=68,00, z=143,50], EntityBat['Bat'/207, l='MpServer', x=309,38, y=28,97, z=149,52], EntityBat['Bat'/206, l='MpServer', x=299,67, y=32,81, z=159,51], EntitySheep['Sheep'/201, l='MpServer', x=301,53, y=70,00, z=202,78], EntitySheep['Sheep'/200, l='MpServer', x=298,25, y=68,00, z=195,97], EntitySheep['Sheep'/203, l='MpServer', x=307,47, y=72,00, z=143,50], EntityZombie['Zombie'/197, l='MpServer', x=299,00, y=49,00, z=194,56], EntityZombie['Zombie'/196, l='MpServer', x=302,50, y=49,00, z=196,50], EntitySheep['Sheep'/199, l='MpServer', x=296,50, y=74,00, z=196,50], EntitySheep['Sheep'/198, l='MpServer', x=293,31, y=67,00, z=200,19], EntitySheep['Sheep'/193, l='MpServer', x=301,34, y=68,00, z=180,53], EntityBat['Bat'/192, l='MpServer', x=299,99, y=50,44, z=189,87], EntitySheep['Sheep'/195, l='MpServer', x=297,19, y=66,00, z=185,25], EntitySheep['Sheep'/194, l='MpServer', x=296,38, y=67,00, z=187,50], EntitySheep['Sheep'/220, l='MpServer', x=326,50, y=77,00, z=208,50], EntitySheep['Sheep'/216, l='MpServer', x=331,78, y=69,00, z=207,41], EntitySheep['Sheep'/217, l='MpServer', x=321,78, y=69,66, z=203,50], EntitySheep['Sheep'/219, l='MpServer', x=324,50, y=69,00, z=212,50], EntitySkeleton['Skeleton'/212, l='MpServer', x=316,50, y=16,00, z=186,50], EntitySheep['Sheep'/213, l='MpServer', x=316,78, y=70,00, z=210,41], EntityEnderman['Enderman'/214, l='MpServer', x=327,45, y=15,00, z=184,68], EntitySheep['Sheep'/208, l='MpServer', x=319,50, y=63,00, z=146,50], EntitySheep['Sheep'/209, l='MpServer', x=318,50, y=66,00, z=151,53], EntitySheep['Sheep'/210, l='MpServer', x=318,47, y=65,00, z=150,47], EntitySheep['Sheep'/211, l='MpServer', x=319,56, y=64,00, z=149,66]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2557)
at net.minecraft.client.Minecraft.run(Minecraft.java:972)
at net.minecraft.client.main.Main.main(Main.java:112)
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 net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_25, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 726612520 bytes (692 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 12926 (723856 bytes; 0 MB) allocated, 2521 (141176 bytes; 0 MB) used
IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
carsanddrives{1.0.4} [Cars and Drives] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: GeForce 410M/PCI/SSE2 GL version 4.1.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 12619 (706664 bytes; 0 MB) allocated, 1202 (67312 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# E:\Julius\Minecraft\MCP-1.7.2\eclipse\.\crash-reports\crash-2014-04-21_14.22.09-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
6. My Custom Furnace:
Recipes Class
I will extend the list sometimes.
is for Solved.
Robbi Blechdose
Robbi Blechdose
Hello!
For example, if you had something like "Block.blocksList[Block.grass.blockID]" before, you can just put "Blocks.grass". If you were using an integer directly, then you'll just have to figure out which block that integer was supposed to be.
As for your custom Fire block, why don't you look in the vanilla fire block and see what those values have become?
Custom Fire Block is solved, too.
Robbi Blechdose
Robbi Blechdose
Robbi Blechdose
Robbi Blechdose
But thanks for trying.
Robbi Blechdose
Are you sure the crash is caused by the creative tab icon, and not the items IN the creative tab? Try it without any items in the tab, and see if it still crashes. Do you have only one tab, or multiple tabs? Perhaps one of the others is crashing.
I recommend also creating a real class for your tab, rather than doing it in-line like that; it's cleaner, easier to read, and easier to debug.
Robbi Blechdose
Does it crash if you change it to an item other than the nether star? How about one of your mod items? Does it crash if you remove the tab entirely?
I also tried my car item. It doesn't work either.
Robbi Blechdose
Art by me: MrPancakeWolfie@DeviantArt
The main class part is in my main class before everything, just after @Mod and @Instance.
Robbi Blechdose
Sounds like a static initializer problem: your tab is getting initialized first, before any Items or anything else are actually loaded into the game, so the icon is pointing to a null Item.
There are 2 solutions:
1. Easiest is to declare and initialize your tab separately:
2. More work, but you get to keep them all as one line: move your creative tabs to a separate class file, so they don't get initialized until your Items start initializing and trying to access them.
Robbi Blechdose
Robbi Blechdose
Robbi, surely you've asked for help enough times now to know that saying "it doesn't work" is not conducive to receiving useful assistance, because we have no way to tell you what is wrong with such a non-descriptive remark.
Adding exclamation marks or using all caps when you "bump" is not necessary and gives off the wrong impression, at least for me. Sure, you need help, but the tone of "BUMP!" vs. "Hey guys, I still need help. Here is exactly what is going wrong and the related code." is very different, with the former likely to get ignored, and the latter more likely to result in useful assistance. Just some friendly advice.
So, it is still the same error log as in the OP.
I didn't really know what you meant with your second idea, and so I tried the first one,
but it didn't work. Still the same error .
BTW, what does the "getTranslatedLabel" method do?
And what is the syntax (you used) for the return string in there?
Robbi Blechdose