Jump to content

Recommended Posts

Posted

Guess the title says everything. I just decided to add a 3d item to one of my custom rendered blocks.(everything worked fine without the 3d item...)

Here is:

 

Block:

 

 

package net.dimensionshift.mod.block;

import net.dimensionshift.mod.DimensionShift;
import net.dimensionshift.mod.tileentity.TileEntityGlassBottle;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class BlockGlassBottle extends BlockContainer{

public BlockGlassBottle(Material material) {
	super(material);
	this.setCreativeTab(DimensionShift.tabDimensionshift);
	this.setBlockName("blockGlassBottle");
	this.setBlockBounds(1F/16F*3F, 0F, 1F/16F*3F, 1F-1F/16F*3F, 1F-1F/16F*2F, 1F-1F/16F*3F);

}

@Override
public TileEntity createNewTileEntity(World var1, int var2) {
	return new TileEntityGlassBottle();
}


public int getRenderType(){
	return -1;
}

public boolean isOpaqueCube(){
	return false;
}

public boolean renderAsNormalBlock(){
	return false;
}


@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister icon){
	this.blockIcon=icon.registerIcon(DimensionShift.MODID + ":" + "blockGlassBottle.png");
}

}

 

 

 

 

Client Proxy:

 

 

package net.dimensionshift.mod.proxies;

import net.dimensionshift.mod.DimensionShift;
import net.dimensionshift.mod.energy.*;
import net.dimensionshift.mod.proxies.*;
import net.dimensionshift.mod.render.*;
import net.dimensionshift.mod.tileentity.*;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;

import com.jadarstudios.developercapes.DevCapes;

import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;

public class DimensionShiftClientProxy extends DimensionShiftCommonProxy {
TileEntitySpecialRenderer render;



public void registerProxies() {

ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBasicPipe.class, new TileEntityRenderBasicPipe());

ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGlassBottle.class, new TileEntityRenderGlassBottle());
render=new TileEntityRenderGlassBottle();
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(DimensionShift.blockGlassBottle), new ItemRenderGlassBottle(render, new TileEntityGlassBottle()));

}


}

 

 

 

ItemRenderer:

 

 

package net.dimensionshift.mod.render;

import org.lwjgl.opengl.GL11;

import net.dimensionshift.mod.model.ModelGlassBottle;
import net.dimensionshift.mod.tileentity.TileEntityGlassBottle;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.client.IItemRenderer;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;

public class ItemRenderGlassBottle implements IItemRenderer{


TileEntitySpecialRenderer render;
private TileEntity tileentity;

public ItemRenderGlassBottle(TileEntitySpecialRenderer render, TileEntity tileentity) {
    this.render = render;
    this.tileentity=tileentity;

}

@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
	return true;
}

@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
	return true;
}

@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
	if (type == IItemRenderer.ItemRenderType.ENTITY)
		GL11.glTranslatef(-0.5F, 0.0F, -0.5F);
		this.render.renderTileEntityAt(tileentity, 0.0D, 0.0D, 0.0D, 0.0F);
}

}

 

 

 

TileEntityRenderer:

 

 

package net.dimensionshift.mod.render;

import net.dimensionshift.mod.DimensionShift;
import net.dimensionshift.mod.model.ModelGlassBottle;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;

public class TileEntityRenderGlassBottle extends TileEntitySpecialRenderer{

public static final ResourceLocation texture = new ResourceLocation(DimensionShift.MODID, "/textures/model/blockGlassBottle.png");

private ModelGlassBottle model;

public TileEntityRenderGlassBottle(){
	this.model= new ModelGlassBottle();

}

public void renderTileEntityAt(TileEntity var1, double x, double y, double z, float var8) {

	GL11.glPushMatrix();
		GL11.glTranslatef((float)x+0.5F, (float)y+1.5F, (float)z+0.5F);
		GL11.glRotatef(180, 0, 0, 1);

		this.bindTexture(texture);


		GL11.glPushMatrix();
			this.model.renderModel(0.0626F);//one pixel in float


	GL11.glPopMatrix();
	GL11.glPopMatrix();		

}

}

 

 

 

And finally my crash log:

 

 


[22:46:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[22:46:07] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading
[22:46:07] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.9.2, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
[22:46:07] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[22:46:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[22:46:08] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[22:46:08] [main/ERROR] [FML]: The minecraft jar file:/Users/USERNAME/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[22:46:08] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[22:46:08] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/Users/USERNAME/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[22:46:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[22:46:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[22:46:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[22:46:08] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[22:46:09] [main/INFO]: Setting user: IPIPP
[22:46:10] [Client thread/INFO]: LWJGL Version: 2.9.1
[22:46:11] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[22:46:11] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized
[22:46:11] [Client thread/INFO] [FML]: Replaced 141 ore recipies
[22:46:11] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[22:46:11] [Client thread/INFO] [FML]: Searching /Users/USERNAME/Desktop/modding/1.7.2 gradle/forge/eclipse/mods for mods
[22:46:12] [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!
[22:46:13] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[22:46:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DimensionShift
[22:46:13] [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.
[22:46:14] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_168_blockGlassBottle.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_168_blockGlassBottle.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:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [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:579) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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:?]
[22:46:14] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_181_pipeBasic.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_181_pipeBasic.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:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [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:579) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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:?]

[22:46:14] [sound Library Loader/INFO]: Sound engine started
[22:46:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[22:46:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[22:46:16] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[22:46:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DimensionShift
[22:46:16] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[22:46:17] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_168_blockGlassBottle.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_168_blockGlassBottle.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:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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:?]
[22:46:17] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_181_pipeBasic.png
java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_181_pipeBasic.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:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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:?]
[22:46:17] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com


Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[22:46:18] [sound Library Loader/INFO]: Sound engine started
[22:46:18] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[22:46:20] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[22:46:20] [server thread/INFO]: Generating keypair
[22:46:20] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[22:46:20] [server thread/INFO] [FML]: Loading dimension 0 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@65a601b0)
[22:46:20] [server thread/INFO] [FML]: Loading dimension 9 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@65a601b0)
[22:46:20] [server thread/INFO] [FML]: Loading dimension 1 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@65a601b0)
[22:46:20] [server thread/INFO] [FML]: Loading dimension -1 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@65a601b0)
[22:46:20] [server thread/INFO]: Preparing start region for level 0
[22:46:21] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[22:46:21] [Netty IO #1/INFO] [FML]: Client protocol version 1
[22:46:21] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],dimensionshift@Experimental v0.231,[email protected]
[22:46:21] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[22:46:21] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[22:46:21] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[22:46:21] [server thread/INFO]: IPIPP[local:E:bdb96216] logged in with entity id 93 at (100.51941947953168, 78.0, 312.85224003519534)
[22:46:21] [server thread/INFO]: IPIPP joined the game
[22:46:21] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[22:46:22] [server thread/INFO]: Stopping server
[22:46:22] [server thread/INFO]: Saving players
[22:46:22] [server thread/INFO]: Saving worlds
[22:46:22] [server thread/INFO]: Saving chunks for level 'Infectus test'/Overworld
[22:46:22] [server thread/INFO]: Saving chunks for level 'Infectus test'/Nether
[22:46:22] [server thread/INFO]: Saving chunks for level 'Infectus test'/The End
[22:46:22] [server thread/INFO]: Saving chunks for level 'Infectus test'/DimenisonShift Infectus
[22:46:22] [server thread/INFO] [FML]: Unloading dimension 0
[22:46:22] [server thread/INFO] [FML]: Unloading dimension -1
[22:46:22] [server thread/INFO] [FML]: Unloading dimension 1
[22:46:22] [server thread/INFO] [FML]: Unloading dimension 9
[22:46:23] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Rendering item
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:599) ~[RenderItem.class:?]
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966) ~[GuiIngame.class:?]
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209) ~[GuiIngameForge.class:?]
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144) ~[GuiIngameForge.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1121) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1023) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21) ~[TileEntitySpecialRenderer.class:?]
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28) ~[TileEntityRenderGlassBottle.class:?]
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38) ~[itemRenderGlassBottle.class:?]
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179) ~[ForgeHooksClient.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558) ~[RenderItem.class:?]
... 13 more
---- Minecraft Crash Report ----
// Oops.

Time: 04.05.14 22:46
Description: Rendering item

java.lang.NullPointerException: Rendering item
at net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21)
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28)
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558)
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966)
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209)
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1121)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1023)
at net.minecraft.client.Minecraft.run(Minecraft.java:910)
at net.minecraft.client.main.Main.main(Main.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21)
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28)
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179)

-- Item being rendered --
Details:
Item Type: net.minecraft.item.ItemBlock@5a9e40d2
Item Aux: 0
Item NBT: null
Item Foil: false
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558)
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966)
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209)
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['IPIPP'/93, l='MpServer', x=100,52, y=79,62, z=312,85]]
Chunk stats: MultiplayerChunkCache: 20, 20
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (160,64,252), Chunk: (at 0,4,12 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 72555 game time, 21940 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: 11 total; [EntityPig['Pig'/51, l='MpServer', x=136,41, y=74,00, z=304,22], EntityBat['Bat'/50, l='MpServer', x=140,53, y=12,59, z=309,56], EntityPig['Pig'/36, l='MpServer', x=65,03, y=72,00, z=295,38], EntityPig['Pig'/37, l='MpServer', x=73,19, y=77,00, z=339,38], EntityBat['Bat'/42, l='MpServer', x=85,94, y=49,47, z=317,03], EntityBat['Bat'/43, l='MpServer', x=81,84, y=48,28, z=319,63], EntityBat['Bat'/40, l='MpServer', x=83,75, y=51,09, z=317,28], EntityBat['Bat'/41, l='MpServer', x=83,38, y=50,03, z=317,00], EntityClientPlayerMP['IPIPP'/93, l='MpServer', x=100,52, y=79,62, z=312,85], EntityBat['Bat'/47, l='MpServer', x=97,25, y=44,09, z=328,75], EntityPig['Pig'/44, l='MpServer', x=92,50, y=71,00, z=312,31]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: Mac OS X (x86_64) version 10.9.2
Java Version: 1.6.0_65, Apple Inc.
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 847309360 bytes (808 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 14534 (813904 bytes; 0 MB) allocated, 14534 (813904 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 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.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
dimensionshift{Experimental v0.231} [DimensionShift] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.1
OpenGL: NVIDIA GeForce GT 650M OpenGL Engine GL version 2.1 NVIDIA-8.24.9 310.40.25f01, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: Deutsch (Deutschland)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 38 (2128 bytes; 0 MB) allocated, 38 (2128 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# /Users/USERNAME/Desktop/modding/1.7.2 gradle/forge/eclipse/./crash-reports/crash-2014-05-04_22.46.23-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
[/Code]

 

 

 

I am sure that its an kind of stupid mistake somewhere but i can't find it.

And please don't tell me that i should have called it "Glass jar". It's driving me nuts that i named it "glass bottle" but i don't want to rename it in every file.

Here could be your advertisement!

Posted

Hi

 

Try putting a setBlockTextureName()  in your block's constructor, or alternatively override registerBlockIcons()

 

-TGG

Tried it but nothing changed.

Here could be your advertisement!

Posted

What is the value of DimensionShift.MODID?

Can we see your folder structure (Packet explorer) which shows the png file?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Hi

 

Try putting a setBlockTextureName()  in your block's constructor, or alternatively override registerBlockIcons()

 

-TGG

Tried it but nothing changed.

Are you sure?

 

[22:46:14] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_168_blockGlassBottle.png

 

This error message showed me that your block texture name hasn't been set correctly, and that vanilla is calling registerIcon on your behalf but is using the missing name. 

Are you sure the error message hasn't changed?

 

If the error message is still the same, and if you know how to use your debugger, you could add a breakpoint to the following Block method:

 

    @SideOnly(Side.CLIENT)
    protected String getTextureName()
    {
        return this.textureName == null ? "MISSING_ICON_BLOCK_" + getIdFromBlock(this) + "_" + this.unlocalizedName : this.textureName;
    }

 

That should show you pretty quick why the name isn't what you expect.

 

-TGG

 

Posted

What is the value of DimensionShift.MODID?

Can we see your folder structure (Packet explorer) which shows the png file?

 

 

 

0OUh8oE.png

 

 

(The 2 packages with errors are never used)

 

EDIT: Managed to produce another error: inspired by tgg's hint(yeah, of course, my textures are somewhere in the minecraftfolder. i am an idiotidotidiotidiotidiotidiot. sry for not noticing that on my own) i played around with my blockClass and added this.textureName="xxx".

(Thought that it would be enough if i have this somewhere in my render class)

 

Block:

 

 

package net.dimensionshift.mod;



import net.dimensionshift.mod.block.*;
import net.dimensionshift.mod.energy.BlockPipe;
import net.dimensionshift.mod.energy.TileEntityBasicPipe;
import net.dimensionshift.mod.gui.*;
import net.dimensionshift.mod.item.*;
import net.dimensionshift.mod.particle.EntityTeleportFX;
import net.dimensionshift.mod.proxies.*;
import net.dimensionshift.mod.tileentity.*;
import net.dimensionshift.mod.world.biome.*;
import net.dimensionshift.mod.world.generation.OreGenerationDimensionShift;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@Mod(modid = DimensionShift.MODID, name= "DimensionShift", version = DimensionShift.VERSION)


public class DimensionShift {

public static final String MODID = "dimensionshift";	//setting MODID
public static final String VERSION = "Experimental v0.231";	//setting MODID
@Instance(MODID)
public static DimensionShift instance;


public static final int dimensionInfectusId=9;



//

@SidedProxy(clientSide="net.dimensionshift.mod.proxies.DimensionShiftClientProxy", serverSide="net.dimensionshift.mod.proxies.DimensionShiftCommonProxy")
public static DimensionShiftCommonProxy proxy;

 

 

 

 

And my new crashlog:

 

 

[20:42:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[20:42:34] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading
[20:42:34] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.9.2, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
[20:42:34] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:42:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:42:34] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:42:34] [main/ERROR] [FML]: The minecraft jar file:/Users/USERNAME/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[20:42:34] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[20:42:34] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/Users/USERNAME/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[20:42:34] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:42:34] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:42:35] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:42:35] [main/INFO]: Setting user: IPIPP
[20:42:36] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:42:37] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[20:42:37] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized
[20:42:37] [Client thread/INFO] [FML]: Replaced 141 ore recipies
[20:42:37] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[20:42:37] [Client thread/INFO] [FML]: Searching /Users/USERNAME/Desktop/modding/1.7.2 gradle/forge/eclipse/mods for mods
[20:42:38] [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!
[20:42:39] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[20:42:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DimensionShift
[20:42:40] [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.

[20:42:40] [sound Library Loader/INFO]: Sound engine started
[20:42:40] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[20:42:41] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[20:42:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[20:42:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DimensionShift
[20:42:42] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[20:42:42] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com


Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[20:42:43] [sound Library Loader/INFO]: Sound engine started
[20:42:43] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[20:42:45] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[20:42:45] [server thread/INFO]: Generating keypair
[20:42:45] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[20:42:45] [server thread/INFO] [FML]: Loading dimension 0 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@2e40b187)
[20:42:45] [server thread/INFO] [FML]: Loading dimension 9 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@2e40b187)
[20:42:45] [server thread/INFO] [FML]: Loading dimension 1 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@2e40b187)
[20:42:45] [server thread/INFO] [FML]: Loading dimension -1 (Infectus test) (net.minecraft.server.integrated.IntegratedServer@2e40b187)
[20:42:45] [server thread/INFO]: Preparing start region for level 0
[20:42:46] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[20:42:46] [Netty IO #1/INFO] [FML]: Client protocol version 1
[20:42:46] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],dimensionshift@Experimental v0.231,[email protected]
[20:42:46] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[20:42:46] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[20:42:46] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[20:42:46] [server thread/INFO]: IPIPP[local:E:dcfee837] logged in with entity id 92 at (100.51941947953168, 78.0, 312.85224003519534)
[20:42:46] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[20:42:46] [server thread/INFO]: IPIPP joined the game
[20:42:47] [server thread/INFO]: Stopping server
[20:42:47] [server thread/INFO]: Saving players
[20:42:47] [server thread/INFO]: Saving worlds
[20:42:47] [server thread/INFO]: Saving chunks for level 'Infectus test'/Overworld
[20:42:47] [server thread/INFO]: Saving chunks for level 'Infectus test'/Nether
[20:42:47] [server thread/INFO]: Saving chunks for level 'Infectus test'/The End
[20:42:47] [server thread/INFO]: Saving chunks for level 'Infectus test'/DimenisonShift Infectus
[20:42:48] [server thread/INFO] [FML]: Unloading dimension 0
[20:42:48] [server thread/INFO] [FML]: Unloading dimension -1
[20:42:48] [server thread/INFO] [FML]: Unloading dimension 1
[20:42:48] [server thread/INFO] [FML]: Unloading dimension 9
[20:42:48] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Rendering item
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:599) ~[RenderItem.class:?]
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966) ~[GuiIngame.class:?]
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209) ~[GuiIngameForge.class:?]
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144) ~[GuiIngameForge.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1121) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1023) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65]
at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65]
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.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21) ~[TileEntitySpecialRenderer.class:?]
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28) ~[TileEntityRenderGlassBottle.class:?]
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38) ~[itemRenderGlassBottle.class:?]
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179) ~[ForgeHooksClient.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558) ~[RenderItem.class:?]
... 13 more
---- Minecraft Crash Report ----
// Oops.

Time: 05.05.14 20:42
Description: Rendering item

java.lang.NullPointerException: Rendering item
at net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21)
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28)
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558)
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966)
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209)
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1121)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1023)
at net.minecraft.client.Minecraft.run(Minecraft.java:910)
at net.minecraft.client.main.Main.main(Main.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:21)
at net.dimensionshift.mod.render.TileEntityRenderGlassBottle.renderTileEntityAt(TileEntityRenderGlassBottle.java:28)
at net.dimensionshift.mod.render.ItemRenderGlassBottle.renderItem(ItemRenderGlassBottle.java:38)
at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:179)

-- Item being rendered --
Details:
Item Type: net.minecraft.item.ItemBlock@6df0a29b
Item Aux: 0
Item NBT: null
Item Foil: false
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:558)
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:966)
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209)
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['IPIPP'/92, l='MpServer', x=100,52, y=79,62, z=312,85]]
Chunk stats: MultiplayerChunkCache: 20, 20
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (160,64,252), Chunk: (at 0,4,12 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 73012 game time, 22397 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: 11 total; [EntityPig['Pig'/35, l='MpServer', x=65,03, y=72,00, z=295,38], EntityPig['Pig'/50, l='MpServer', x=135,31, y=75,00, z=303,53], EntityBat['Bat'/48, l='MpServer', x=121,84, y=14,22, z=323,25], EntityBat['Bat'/39, l='MpServer', x=88,50, y=47,59, z=318,34], EntityPig['Pig'/36, l='MpServer', x=72,47, y=78,00, z=340,13], EntityBat['Bat'/42, l='MpServer', x=82,72, y=49,59, z=318,09], EntityPig['Pig'/43, l='MpServer', x=92,50, y=71,00, z=312,31], EntityBat['Bat'/40, l='MpServer', x=83,75, y=51,09, z=317,28], EntityBat['Bat'/41, l='MpServer', x=87,03, y=48,75, z=315,78], EntityBat['Bat'/46, l='MpServer', x=97,25, y=44,09, z=328,75], EntityClientPlayerMP['IPIPP'/92, l='MpServer', x=100,52, y=79,62, z=312,85]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: Mac OS X (x86_64) version 10.9.2
Java Version: 1.6.0_65, Apple Inc.
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 850240096 bytes (810 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 14534 (813904 bytes; 0 MB) allocated, 14534 (813904 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 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.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
dimensionshift{Experimental v0.231} [DimensionShift] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.1
OpenGL: NVIDIA GeForce GT 650M OpenGL Engine GL version 2.1 NVIDIA-8.24.9 310.40.25f01, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: Deutsch (Deutschland)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 38 (2128 bytes; 0 MB) allocated, 38 (2128 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
#@!@# Game crashed! Crash report saved to: #@!@# /Users/USERNAME/Desktop/modding/1.7.2 gradle/forge/eclipse/./crash-reports/crash-2014-05-05_20.42.48-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

Here could be your advertisement!

Posted

Hi

 

I haven't used TileEntitySpecialRenderer in 1.7.2 yet, but the symptoms suggest your call to bindTileEntitySpecialRenderer isn't happening for the glass bottle, for some reason? 

 

breakpoints might help you figure it out again, 

in

ClientRegistry::

public static void bindTileEntitySpecialRenderer(Class <? extends TileEntity> tileEntityClass, TileEntitySpecialRenderer specialRenderer)

to check you are registering your bottle properly, and

and

TileEntityRenderGlassBottle.renderTileEntityAt(...)

to let you trace through into TileEntitySpecialRenderer.bindTexture

 

-TGG

 

 

 

Posted

Hi

 

I haven't used TileEntitySpecialRenderer in 1.7.2 yet, but the symptoms suggest your call to bindTileEntitySpecialRenderer isn't happening for the glass bottle, for some reason? 

 

breakpoints might help you figure it out again, 

in

ClientRegistry::

public static void bindTileEntitySpecialRenderer(Class <? extends TileEntity> tileEntityClass, TileEntitySpecialRenderer specialRenderer)

to check you are registering your bottle properly, and

and

TileEntityRenderGlassBottle.renderTileEntityAt(...)

to let you trace through into TileEntitySpecialRenderer.bindTexture

 

-TGG

 

Yeah, that kind of solved my problem.

I had to use FMLClientHandler.instance().getClient().renderEngine.bindTexture(texture); instead of this.bindTexture(texture);

 

Just one final last problem left. (Maybe two)

 

1. I now want to get the right particles spawning when the block is destroyed. But if i remove this.textureName i get missing textures errors and when i destroy the block the particles are pink/black.

How can i use my not 16x16 texture in my BlockClass?

 

2. Is there any way to resize the model you have in your hand without effecting the inventory icon?

Here could be your advertisement!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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