Rendu complexe de bloc via TESR
-
Dans ce cas il manque toujours quelque chose. Envoie ton ClientProxy.
-
package Universe.common; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderGhast; import net.minecraft.client.renderer.entity.RenderZombie; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.client.registry.RenderingRegistry; import Universe.common.CommonProxy; import Universe.common.TESRInventoryRenderer.TESRIndex; public class ClientProxy extends CommonProxy { @Override public void registerRender() { renderBasciSolarPanelID = RenderingRegistry.getNextAvailableRenderId(); renderInventoryTESRId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new TESRInventoryRenderer()); RenderingRegistry.registerBlockHandler(renderBasciSolarPanelID, new RenderCustomBlocks()); } public static int renderBasciSolarPanelID; public static int renderInventoryTESRId; @Override public void registerTileEntityRender() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySolarPanelBasic.class, new TileEntitySolarPanelBasicSpecialRender()); TESRInventoryRenderer.blockByTESR.put(new TESRIndex(UniverseMain.PanneauSolaireBasique, 0), new TileEntitySolarPanelBasicSpecialRender()); } }
-
Ta méthode registerRender n’est pas appelé dans ta classe principale.
Dans la méthode init de ta classe principale ajoute :
proxy.registerRender(); -
sa change rien
Je commence a etre perdu la -
Dans ta classe TESRInventoryRenderer, tu as bien :
@Override public int getRenderId() { return ClientProxy.renderInventoryTESRId; }
?
-
Oui il y est
package Universe.common; import java.util.HashMap; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.world.IBlockAccess; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; public class TESRInventoryRenderer implements ISimpleBlockRenderingHandler { public static class TESRIndex { Block block; int metadata; public TESRIndex(Block block, int metadata) { this.block = block; this.metadata = metadata; } @Override public int hashCode() { return block.hashCode() + metadata; } @Override public boolean equals(Object o) { if(!(o instanceof TESRIndex)) return false; TESRIndex tesr = (TESRIndex)o; return tesr.block == block && tesr.metadata == metadata; } } public static HashMap <tesrindex, iinventoryrenderer="">blockByTESR = new HashMap<tesrindex, iinventoryrenderer="">(); @Override public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) { TESRIndex index = new TESRIndex(block, metadata); if(blockByTESR.containsKey(index)) { blockByTESR.get(index).renderInventory(-0.5, -0.5, -0.5); } } @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { return true; } @Override public boolean shouldRender3DInInventory() { return true; } @Override public int getRenderId() { return ClientProxy.renderInventoryTESRId; } } ```</tesrindex,></tesrindex,>
-
Franchement… Je ne sais pas, tout le code semble bon
-
Bon j’en suis juste avant de commencer le rendu en Main
( Tile entitySpecial Render )j’ai des erreurs je sais pas pourquoi et quand je pose le bloc sa fait un ecran bleu puis crash donc
voila le Special Renderpackage Universe.common; import net.minecraft.client.renderer.tileentity.TileEntityRenderer; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; public class TileEntityBasicSolarPanelSpecialRender extends TileEntitySpecialRenderer implements IInventoryRenderer { private final ModelSolarPanel model = new ModelSolarPanel(); public static final ResourceLocation textureLocation = new ResourceLocation("universe", "textures/blocks/PanneauSolaireBasique.png"); public TileEntityBasicSolarPanelSpecialRender() { this.setTileEntityRenderer(TileEntityRenderer.instance); } @Override public void renderInventory(double x, double y, double z) { // TODO Auto-generated method stub this.renderTileEntityBasicSolarPanelAt(null, x, y, z, 0.0F); } @Override public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) { // TODO Auto-generated method stub this.renderTileEntityBasicSolarPanelAt((TileEntityBasicSolarPanel)te, x, y, z, tick); GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); this.bindTexture(textureLocation); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(0.0625F); GL11.glPopMatrix(); } public void renderTileEntityBasicSolarPanelAt(TileEntityBasicSolarPanel te, double x, double y, double z, float tick) { } }
et le report de crash
mars 05, 2014 8:46:09 PM net.minecraft.launchwrapper.LogWrapper log Infos: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker mars 05, 2014 8:46:09 PM net.minecraft.launchwrapper.LogWrapper log Infos: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker mars 05, 2014 8:46:09 PM net.minecraft.launchwrapper.LogWrapper log Infos: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Forge Mod Loader version 6.4.45.953 for Minecraft 1.6.4 loading 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker 2014-03-05 20:46:09 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper 2014-03-05 20:46:09 [Infos] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg 2014-03-05 20:46:09 [Grave] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work! 2014-03-05 20:46:10 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper 2014-03-05 20:46:10 [Infos] [STDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg 2014-03-05 20:46:10 [Infos] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker 2014-03-05 20:46:10 [Infos] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main} 2014-03-05 20:46:10 [Infos] [Minecraft-Client] Setting user: Player283 2014-03-05 20:46:11 [Infos] [Minecraft-Client] LWJGL Version: 2.9.0 2014-03-05 20:46:11 [Infos] [Minecraft-Client] Reloading ResourceManager: Default 2014-03-05 20:46:12 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization 2014-03-05 20:46:12 [Infos] [STDOUT] MinecraftForge v9.11.1.953 Initialized 2014-03-05 20:46:12 [Infos] [ForgeModLoader] MinecraftForge v9.11.1.953 Initialized 2014-03-05 20:46:12 [Infos] [STDOUT] Replaced 112 ore recipies 2014-03-05 20:46:12 [Infos] [MinecraftForge] Completed early MinecraftForge initialization 2014-03-05 20:46:12 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\Alexandre\Desktop\Ressources\modding\forge MobTest\mcp\jars\config\logging.properties 2014-03-05 20:46:12 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2014-03-05 20:46:12 [Infos] [ForgeModLoader] Searching C:\Users\Alexandre\Desktop\Ressources\modding\forge MobTest\mcp\jars\mods for mods 2014-03-05 20:46:13 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2014-03-05 20:46:13 [Infos] [mcp] Activating mod mcp 2014-03-05 20:46:13 [Infos] [FML] Activating mod FML 2014-03-05 20:46:13 [Infos] [Forge] Activating mod Forge 2014-03-05 20:46:13 [Infos] [UltimateUniverseMod] Activating mod UltimateUniverseMod 2014-03-05 20:46:13 [Avertissement] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:13 [Avertissement] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:13 [Avertissement] [Ultimate Universe Mod] Mod Ultimate Universe Mod is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:13 [Infos] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Ultimate Universe Mod 2014-03-05 20:46:13 [Infos] [ForgeModLoader] Registering Forge Packet Handler 2014-03-05 20:46:13 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler 2014-03-05 20:46:13 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0 2014-03-05 20:46:14 [Grave] [Minecraft-Client] Unable to parse animation metadata from universe:textures/blocks/PanneauSolaireBasique.png: broken aspect ratio and not an animation 2014-03-05 20:46:14 [Infos] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods 2014-03-05 20:46:14 [Avertissement] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:14 [Avertissement] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:14 [Avertissement] [Ultimate Universe Mod] Mod Ultimate Universe Mod is missing a pack.mcmeta file, things may not work well 2014-03-05 20:46:14 [Infos] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Ultimate Universe Mod 2014-03-05 20:46:14 [Grave] [Minecraft-Client] Unable to parse animation metadata from universe:textures/blocks/PanneauSolaireBasique.png: broken aspect ratio and not an animation 2014-03-05 20:46:14 [Infos] [STDOUT] 2014-03-05 20:46:14 [Infos] [STDOUT] Starting up SoundSystem… 2014-03-05 20:46:14 [Infos] [STDOUT] Initializing LWJGL OpenAL 2014-03-05 20:46:14 [Infos] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2014-03-05 20:46:15 [Infos] [STDOUT] OpenAL initialized. 2014-03-05 20:46:15 [Infos] [STDOUT] 2014-03-05 20:46:15 [Grave] [Minecraft-Client] Realms: Server not available! 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting level New World 2014-03-05 20:46:18 [Infos] [STDOUT] Attempt 1… 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\data 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\data\Mineshaft.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\data\Temple.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\data\Village.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\data\villages.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM-1 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM-1\data 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM-1\data\villages.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM-1\forcedchunks.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM1 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM1\data 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM1\data\villages.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\DIM1\forcedchunks.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\forcedchunks.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\level.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\level.dat_mcr 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\level.dat_old 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\players 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\players\Player139.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\players\Player849.dat 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\region 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\region\r.-1.0.mca 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\region\r.0.0.mca 2014-03-05 20:46:18 [Infos] [STDOUT] Deleting .\saves\New World\session.lock 2014-03-05 20:46:21 [Infos] [Minecraft-Server] Starting integrated minecraft server version 1.6.4 2014-03-05 20:46:21 [Infos] [Minecraft-Server] Generating keypair 2014-03-05 20:46:21 [Infos] [Minecraft-Server] Converting map! 2014-03-05 20:46:21 [Infos] [Minecraft-Server] Scanning folders… 2014-03-05 20:46:21 [Infos] [Minecraft-Server] Total conversion count is 0 2014-03-05 20:46:22 [Infos] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@13c470d4) 2014-03-05 20:46:22 [Infos] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@13c470d4) 2014-03-05 20:46:22 [Infos] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@13c470d4) 2014-03-05 20:46:22 [Infos] [Minecraft-Server] Preparing start region for level 0 2014-03-05 20:46:23 [Infos] [Minecraft-Server] Preparing spawn area: 18% 2014-03-05 20:46:24 [Infos] [Minecraft-Server] Preparing spawn area: 43% 2014-03-05 20:46:25 [Infos] [Minecraft-Server] Preparing spawn area: 66% 2014-03-05 20:46:26 [Infos] [Minecraft-Server] Preparing spawn area: 96% 2014-03-05 20:46:26 [Infos] [Minecraft-Server] Player283[/127.0.0.1:0] logged in with entity id 191 at (-78.5, 64.0, 158.5) 2014-03-05 20:46:26 [Infos] [Minecraft-Server] Player283 joined the game 2014-03-05 20:46:26 [Infos] [STDOUT] Setting up custom skins 2014-03-05 20:46:36 [Infos] [Minecraft-Server] Stopping server 2014-03-05 20:46:36 [Infos] [Minecraft-Server] Saving players 2014-03-05 20:46:36 [Infos] [Minecraft-Server] Player283 left the game 2014-03-05 20:46:36 [Infos] [Minecraft-Server] Saving worlds 2014-03-05 20:46:36 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/Overworld 2014-03-05 20:46:38 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/Nether 2014-03-05 20:46:38 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/The End 2014-03-05 20:46:39 [Infos] [ForgeModLoader] Unloading dimension 0 2014-03-05 20:46:39 [Infos] [ForgeModLoader] Unloading dimension -1 2014-03-05 20:46:39 [Infos] [ForgeModLoader] Unloading dimension 1 2014-03-05 20:46:40 [Infos] [STDERR] net.minecraft.util.ReportedException: Rendering Tile Entity 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntityAt(TileEntityRenderer.java:179) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntity(TileEntityRenderer.java:157) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:536) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93) 2014-03-05 20:46:40 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-03-05 20:46:40 [Infos] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-03-05 20:46:40 [Infos] [STDERR] Caused by: java.lang.Error: Unresolved compilation problems: 2014-03-05 20:46:40 [Infos] [STDERR] te cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] x cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] y cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] z cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] tick cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] x cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] y cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] z cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDERR] The method render(Entity, float, float, float, float, float, float) in the type ModelSolarPanel is not applicable for the arguments (float) 2014-03-05 20:46:40 [Infos] [STDERR] 2014-03-05 20:46:40 [Infos] [STDERR] at Universe.common.TileEntityBasicSolarPanelSpecialRender.renderTileEntityAt(TileEntityBasicSolarPanelSpecialRender.java:32) 2014-03-05 20:46:40 [Infos] [STDERR] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntityAt(TileEntityRenderer.java:172) 2014-03-05 20:46:40 [Infos] [STDERR] … 13 more 2014-03-05 20:46:40 [Infos] [STDOUT] –-- Minecraft Crash Report ---- 2014-03-05 20:46:40 [Infos] [STDOUT] // I blame Dinnerbone. 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] Time: 05/03/14 20:46 2014-03-05 20:46:40 [Infos] [STDOUT] Description: Rendering Tile Entity 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] java.lang.Error: Unresolved compilation problems: 2014-03-05 20:46:40 [Infos] [STDOUT] te cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] x cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] y cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] z cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] tick cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] x cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] y cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] z cannot be resolved to a variable 2014-03-05 20:46:40 [Infos] [STDOUT] The method render(Entity, float, float, float, float, float, float) in the type ModelSolarPanel is not applicable for the arguments (float) 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] at Universe.common.TileEntityBasicSolarPanelSpecialRender.renderTileEntityAt(TileEntityBasicSolarPanelSpecialRender.java:32) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntityAt(TileEntityRenderer.java:172) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntity(TileEntityRenderer.java:157) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:536) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows: 2014-03-05 20:46:40 [Infos] [STDOUT] –------------------------------------------------------------------------------------- 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] – Head -- 2014-03-05 20:46:40 [Infos] [STDOUT] Stacktrace: 2014-03-05 20:46:40 [Infos] [STDOUT] at Universe.common.TileEntityBasicSolarPanelSpecialRender.renderTileEntityAt(TileEntityBasicSolarPanelSpecialRender.java:32) 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] – Tile Entity Details -- 2014-03-05 20:46:40 [Infos] [STDOUT] Details: 2014-03-05 20:46:40 [Infos] [STDOUT] Name: BasicSolarPanel // Universe.common.TileEntityBasicSolarPanel 2014-03-05 20:46:40 [Infos] [STDOUT] Block type: ID #1000 (tile.PSB // Universe.common.BasicSolarPanel) 2014-03-05 20:46:40 [Infos] [STDOUT] Block data value: 2 / 0x2 / 0b0010 2014-03-05 20:46:40 [Infos] [STDOUT] Block location: World: (-74,65,176), Chunk: (at 6,4,0 in -5,11; contains blocks -80,0,176 to -65,255,191), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2014-03-05 20:46:40 [Infos] [STDOUT] Actual block type: ID #1000 (tile.PSB // Universe.common.BasicSolarPanel) 2014-03-05 20:46:40 [Infos] [STDOUT] Actual block data value: 2 / 0x2 / 0b0010 2014-03-05 20:46:40 [Infos] [STDOUT] Stacktrace: 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntityAt(TileEntityRenderer.java:172) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.tileentity.TileEntityRenderer.renderTileEntity(TileEntityRenderer.java:157) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:536) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160) 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] – Affected level -- 2014-03-05 20:46:40 [Infos] [STDOUT] Details: 2014-03-05 20:46:40 [Infos] [STDOUT] Level name: MpServer 2014-03-05 20:46:40 [Infos] [STDOUT] All players: 1 total; [EntityClientPlayerMP['Player283'/191, l='MpServer', x=-73,34, y=66,62, z=172,04]] 2014-03-05 20:46:40 [Infos] [STDOUT] Chunk stats: MultiplayerChunkCache: 441 2014-03-05 20:46:40 [Infos] [STDOUT] Level seed: 0 2014-03-05 20:46:40 [Infos] [STDOUT] Level generator: ID 00 - default, ver 1\. Features enabled: false 2014-03-05 20:46:40 [Infos] [STDOUT] Level generator options: 2014-03-05 20:46:40 [Infos] [STDOUT] Level spawn location: World: (-80,64,160), Chunk: (at 0,4,0 in -5,10; contains blocks -80,0,160 to -65,255,175), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) 2014-03-05 20:46:40 [Infos] [STDOUT] Level time: 204 game time, 204 day time 2014-03-05 20:46:40 [Infos] [STDOUT] Level dimension: 0 2014-03-05 20:46:40 [Infos] [STDOUT] Level storage version: 0x00000 - Unknown? 2014-03-05 20:46:40 [Infos] [STDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) 2014-03-05 20:46:40 [Infos] [STDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false 2014-03-05 20:46:40 [Infos] [STDOUT] Forced entities: 336 total; [EntityMinecartChest['entity.MinecartChest.name'/66, l='MpServer', x=-149,50, y=18,50, z=188,50], EntityCow['Cow'/76, l='MpServer', x=-130,50, y=64,00, z=136,50], EntityCow['Cow'/73, l='MpServer', x=-129,53, y=65,00, z=145,28], EntityCow['Cow'/74, l='MpServer', x=-130,50, y=66,00, z=143,50], EntityCow['Cow'/75, l='MpServer', x=-130,50, y=66,00, z=141,50], EntityCow['Cow'/85, l='MpServer', x=-96,50, y=69,00, z=121,50], EntityCow['Cow'/84, l='MpServer', x=-95,55, y=64,00, z=122,50], EntityCow['Cow'/87, l='MpServer', x=-93,45, y=65,00, z=122,50], EntityFallingSand['Falling Block'/2254, l='MpServer', x=-158,50, y=26,87, z=311,50], EntityCow['Cow'/86, l='MpServer', x=-92,50, y=71,00, z=121,50], EntityItem['item.item.string'/81, l='MpServer', x=-107,06, y=17,56, z=221,30], EntityItem['item.item.string'/82, l='MpServer', x=-107,81, y=16,13, z=221,41], EntityChicken['Chicken'/119, l='MpServer', x=-54,51, y=69,00, z=101,72], EntitySheep['Sheep'/127, l='MpServer', x=-51,50, y=64,00, z=141,50], EntityChicken['Chicken'/122, l='MpServer', x=-53,53, y=63,00, z=112,41], EntityChicken['Chicken'/121, l='MpServer', x=-56,56, y=67,00, z=103,94], EntityChicken['Chicken'/120, l='MpServer', x=-58,50, y=70,00, z=102,50], EntitySheep['Sheep'/129, l='MpServer', x=-46,50, y=72,00, z=144,50], EntitySheep['Sheep'/128, l='MpServer', x=-53,91, y=70,00, z=148,59], EntitySheep['Sheep'/130, l='MpServer', x=-46,50, y=72,00, z=147,50], EntityPig['Pig'/156, l='MpServer', x=5,22, y=64,00, z=243,50], EntityPig['Pig'/158, l='MpServer', x=4,50, y=64,00, z=239,22], EntityPig['Pig'/159, l='MpServer', x=4,50, y=64,00, z=240,81], EntitySheep['Sheep'/147, l='MpServer', x=-24,16, y=64,00, z=202,84], EntitySheep['Sheep'/148, l='MpServer', x=-19,50, y=64,00, z=199,22], EntitySheep['Sheep'/149, l='MpServer', x=-17,50, y=64,00, z=199,50], EntitySheep['Sheep'/150, l='MpServer', x=-20,38, y=64,00, z=191,25], EntityCreeper['Creeper'/205, l='MpServer', x=-136,50, y=15,00, z=218,50], EntitySkeleton['Skeleton'/204, l='MpServer', x=-130,50, y=15,00, z=221,50], EntitySkeleton['Skeleton'/203, l='MpServer', x=-127,50, y=15,00, z=222,50], EntitySkeleton['Skeleton'/202, l='MpServer', x=-134,50, y=15,00, z=215,50], EntitySkeleton['Skeleton'/193, l='MpServer', x=5,50, y=34,00, z=126,50], EntitySkeleton['Skeleton'/195, l='MpServer', x=3,50, y=34,00, z=130,50], EntitySkeleton['Skeleton'/194, l='MpServer', x=4,50, y=34,00, z=130,50], EntitySkeleton['Skeleton'/222, l='MpServer', x=-127,50, y=29,00, z=246,94], EntitySkeleton['Skeleton'/223, l='MpServer', x=-124,50, y=28,00, z=246,50], EntityBat['Bat'/228, l='MpServer', x=-5,83, y=11,00, z=226,56], EntityBat['Bat'/246, l='MpServer', x=-37,67, y=17,48, z=217,39], EntityBat['Bat'/244, l='MpServer', x=-40,38, y=13,00, z=221,67], EntityBat['Bat'/243, l='MpServer', x=-83,32, y=25,03, z=137,73], EntityFallingSand['Falling Block'/6323, l='MpServer', x=11,50, y=38,42, z=249,50], EntityFallingSand['Falling Block'/6322, l='MpServer', x=10,50, y=38,42, z=249,50], EntityFallingSand['Falling Block'/6321, l='MpServer', x=10,50, y=38,42, z=250,50], EntityFallingSand['Falling Block'/6320, l='MpServer', x=13,50, y=38,42, z=251,50], EntityFallingSand['Falling Block'/6325, l='MpServer', x=8,50, y=38,42, z=248,50], EntityFallingSand['Falling Block'/6324, l='MpServer', x=9,50, y=38,42, z=249,50], EntityFallingSand['Falling Block'/6314, l='MpServer', x=12,50, y=37,42, z=252,50], EntityFallingSand['Falling Block'/6315, l='MpServer', x=12,50, y=38,42, z=251,50], EntityFallingSand['Falling Block'/6312, l='MpServer', x=11,50, y=31,42, z=257,50], EntityFallingSand['Falling Block'/6313, l='MpServer', x=12,50, y=29,42, z=258,50], EntityFallingSand['Falling Block'/6318, l='MpServer', x=11,50, y=38,42, z=251,50], EntityFallingSand['Falling Block'/6319, l='MpServer', x=12,50, y=38,42, z=250,50], EntityFallingSand['Falling Block'/6316, l='MpServer', x=13,50, y=37,42, z=252,50], EntityClientPlayerMP['Player283'/191, l='MpServer', x=-73,34, y=66,62, z=172,04], EntityFallingSand['Falling Block'/6317, l='MpServer', x=11,50, y=38,42, z=250,50], EntitySkeleton['Skeleton'/267, l='MpServer', x=-19,50, y=51,00, z=170,50], EntitySpider['Spider'/265, l='MpServer', x=-13,94, y=47,00, z=165,72], EntityFallingSand['Falling Block'/6310, l='MpServer', x=11,50, y=30,42, z=258,50], EntityFallingSand['Falling Block'/6311, l='MpServer', x=11,50, y=31,42, z=256,50], EntitySkeleton['Skeleton'/268, l='MpServer', x=-21,50, y=51,00, z=170,50], EntitySkeleton['Skeleton'/269, l='MpServer', x=-142,50, y=19,00, z=232,50], EntityFallingSand['Falling Block'/6297, l='MpServer', x=18,50, y=28,30, z=223,50], EntityFallingSand['Falling Block'/6296, l='MpServer', x=20,50, y=28,30, z=223,50], EntityFallingSand['Falling Block'/6299, l='MpServer', x=17,50, y=27,30, z=225,50], EntityBat['Bat'/307, l='MpServer', x=-24,44, y=37,10, z=163,38], EntityFallingSand['Falling Block'/6298, l='MpServer', x=18,50, y=28,30, z=224,50], EntityBat['Bat'/306, l='MpServer', x=-12,67, y=26,70, z=183,40], EntityFallingSand['Falling Block'/6301, l='MpServer', x=18,50, y=28,30, z=225,50], EntityFallingSand['Falling Block'/6300, l='MpServer', x=17,50, y=28,30, z=224,50], EntityBat['Bat'/308, l='MpServer', x=-27,24, y=34,21, z=158,93], EntityBat['Bat'/313, l='MpServer', x=-114,11, y=33,71, z=152,72], EntityFallingSand['Falling Block'/6295, l='MpServer', x=19,50, y=28,30, z=224,50], EntityCreeper['Creeper'/288, l='MpServer', x=-42,28, y=39,00, z=170,00], EntityCreeper['Creeper'/289, l='MpServer', x=-40,88, y=34,00, z=164,47], EntityCreeper['Creeper'/290, l='MpServer', x=-44,00, y=39,00, z=171,69], EntityCreeper['Creeper'/291, l='MpServer', x=-45,38, y=39,00, z=167,50], EntityZombie['Zombie'/351, l='MpServer', x=-2,50, y=30,00, z=147,50], EntityBat['Bat'/326, l='MpServer', x=-5,15, y=31,28, z=153,46], EntityBat['Bat'/368, l='MpServer', x=-27,45, y=20,07, z=132,86], EntityFallingSand['Falling Block'/6352, l='MpServer', x=14,50, y=31,50, z=282,50], EntityFallingSand['Falling Block'/6348, l='MpServer', x=14,50, y=31,50, z=283,50], EntityFallingSand['Falling Block'/6349, l='MpServer', x=15,50, y=29,50, z=284,50], EntityFallingSand['Falling Block'/6350, l='MpServer', x=15,50, y=31,50, z=283,50], EntityFallingSand['Falling Block'/6351, l='MpServer', x=13,50, y=31,50, z=282,50], EntityFallingSand['Falling Block'/6344, l='MpServer', x=14,50, y=29,50, z=285,50], EntityZombie['Zombie'/352, l='MpServer', x=-5,50, y=30,00, z=143,50], EntityFallingSand['Falling Block'/6345, l='MpServer', x=14,50, y=30,50, z=284,50], EntityFallingSand['Falling Block'/6346, l='MpServer', x=13,50, y=30,50, z=284,50], EntityFallingSand['Falling Block'/6347, l='MpServer', x=13,50, y=31,50, z=283,50], EntityZombie['Zombie'/364, l='MpServer', x=-5,25, y=41,00, z=140,84], EntityZombie['Zombie'/365, l='MpServer', x=-1,59, y=40,00, z=149,56], EntityFallingSand['Falling Block'/6342, l='MpServer', x=13,50, y=29,50, z=286,50], EntityFallingSand['Falling Block'/6343, l='MpServer', x=13,50, y=30,50, z=285,50], EntityCreeper['Creeper'/367, l='MpServer', x=-93,50, y=27,00, z=156,50], EntityZombie['Zombie'/362, l='MpServer', x=-5,03, y=38,00, z=149,47], EntityZombie['Zombie'/363, l='MpServer', x=2,47, y=35,04, z=138,76], EntityFallingSand['Falling Block'/6179, l='MpServer', x=14,50, y=9,03, z=187,50], EntityFallingSand['Falling Block'/6178, l='MpServer', x=15,50, y=9,03, z=188,50], EntityFallingSand['Falling Block'/6177, l='MpServer', x=13,50, y=20,11, z=173,50], EntityFallingSand['Falling Block'/6176, l='MpServer', x=15,50, y=21,11, z=172,50], EntityFallingSand['Falling Block'/6183, l='MpServer', x=13,50, y=9,03, z=188,50], EntityFallingSand['Falling Block'/6182, l='MpServer', x=13,50, y=9,03, z=187,50], EntityFallingSand['Falling Block'/6181, l='MpServer', x=13,50, y=9,03, z=186,50], EntityFallingSand['Falling Block'/6180, l='MpServer', x=14,50, y=9,03, z=188,50], EntityFallingSand['Falling Block'/6187, l='MpServer', x=10,50, y=9,03, z=185,50], EntityFallingSand['Falling Block'/6186, l='MpServer', x=11,50, y=9,03, z=186,50], EntityFallingSand['Falling Block'/6185, l='MpServer', x=12,50, y=9,03, z=187,50], EntityFallingSand['Falling Block'/6184, l='MpServer', x=12,50, y=9,03, z=186,50], EntitySkeleton['Skeleton'/391, l='MpServer', x=-34,50, y=35,00, z=167,50], EntityFallingSand['Falling Block'/6189, l='MpServer', x=11,50, y=9,03, z=185,50], EntityFallingSand['Falling Block'/6188, l='MpServer', x=10,50, y=9,03, z=186,50], EntityBat['Bat'/388, l='MpServer', x=-51,49, y=34,19, z=170,48], EntityFallingSand['Falling Block'/6160, l='MpServer', x=16,50, y=55,11, z=168,50], EntityFallingSand['Falling Block'/6161, l='MpServer', x=25,50, y=25,11, z=180,50], EntityBat['Bat'/441, l='MpServer', x=-48,45, y=41,44, z=103,50], EntityFallingSand['Falling Block'/6162, l='MpServer', x=25,50, y=25,11, z=181,50], EntityFallingSand['Falling Block'/6163, l='MpServer', x=26,50, y=25,11, z=180,50], EntityFallingSand['Falling Block'/6164, l='MpServer', x=24,50, y=25,11, z=181,50], EntityFallingSand['Falling Block'/6165, l='MpServer', x=24,50, y=26,11, z=180,50], EntityFallingSand['Falling Block'/6166, l='MpServer', x=23,50, y=25,11, z=181,50], EntityFallingSand['Falling Block'/6167, l='MpServer', x=23,50, y=25,11, z=180,50], EntityFallingSand['Falling Block'/6168, l='MpServer', x=24,50, y=24,11, z=182,50], EntityZombie['Zombie'/432, l='MpServer', x=-143,50, y=20,00, z=170,50], EntityFallingSand['Falling Block'/6169, l='MpServer', x=22,50, y=24,11, z=181,50], EntityZombie['Zombie'/433, l='MpServer', x=-141,50, y=20,00, z=166,50], EntityFallingSand['Falling Block'/6170, l='MpServer', x=22,50, y=26,11, z=180,50], EntityFallingSand['Falling Block'/6171, l='MpServer', x=23,50, y=24,11, z=182,50], EntityFallingSand['Falling Block'/6172, l='MpServer', x=16,50, y=21,11, z=171,50], EntityFallingSand['Falling Block'/6173, l='MpServer', x=17,50, y=22,11, z=171,50], EntityFallingSand['Falling Block'/6174, l='MpServer', x=17,50, y=22,11, z=172,50], EntityFallingSand['Falling Block'/6175, l='MpServer', x=14,50, y=20,11, z=172,50], EntityFallingSand['Falling Block'/6145, l='MpServer', x=13,50, y=54,11, z=154,50], EntityFallingSand['Falling Block'/6144, l='MpServer', x=6,50, y=31,96, z=146,50], EntityFallingSand['Falling Block'/6147, l='MpServer', x=12,50, y=55,11, z=154,50], EntityFallingSand['Falling Block'/6146, l='MpServer', x=11,50, y=55,11, z=154,50], EntityFallingSand['Falling Block'/6149, l='MpServer', x=16,50, y=56,11, z=164,50], EntityFallingSand['Falling Block'/6148, l='MpServer', x=12,50, y=55,11, z=155,50], EntityFallingSand['Falling Block'/6151, l='MpServer', x=16,50, y=56,11, z=165,50], EntityZombie['Zombie'/431, l='MpServer', x=-141,50, y=20,00, z=169,50], EntityFallingSand['Falling Block'/6150, l='MpServer', x=15,50, y=56,11, z=164,50], EntityZombie['Zombie'/430, l='MpServer', x=-142,50, y=20,00, z=168,50], EntityFallingSand['Falling Block'/6153, l='MpServer', x=16,50, y=56,11, z=166,50], EntityFallingSand['Falling Block'/6152, l='MpServer', x=15,50, y=56,11, z=165,50], EntityFallingSand['Falling Block'/6155, l='MpServer', x=16,50, y=56,11, z=167,50], EntityFallingSand['Falling Block'/6154, l='MpServer', x=15,50, y=56,11, z=166,50], EntityFallingSand['Falling Block'/6157, l='MpServer', x=17,50, y=56,11, z=167,50], EntityFallingSand['Falling Block'/6156, l='MpServer', x=17,50, y=56,11, z=166,50], EntityFallingSand['Falling Block'/6159, l='MpServer', x=17,50, y=56,11, z=168,50], EntityFallingSand['Falling Block'/6158, l='MpServer', x=15,50, y=55,11, z=167,50], EntityFallingSand['Falling Block'/6262, l='MpServer', x=13,50, y=15,26, z=214,50], EntityFallingSand['Falling Block'/6263, l='MpServer', x=11,50, y=15,26, z=214,50], EntityFallingSand['Falling Block'/6260, l='MpServer', x=12,50, y=15,26, z=214,50], EntityFallingSand['Falling Block'/6261, l='MpServer', x=12,50, y=15,26, z=215,50], EntityFallingSand['Falling Block'/6258, l='MpServer', x=13,50, y=15,26, z=216,50], EntityFallingSand['Falling Block'/6259, l='MpServer', x=14,50, y=15,26, z=214,50], EntityFallingSand['Falling Block'/6256, l='MpServer', x=14,50, y=16,26, z=215,50], EntityFallingSand['Falling Block'/6257, l='MpServer', x=13,50, y=15,26, z=215,50], EntityFallingSand['Falling Block'/6268, l='MpServer', x=21,50, y=21,26, z=196,50], EntityFallingSand['Falling Block'/6266, l='MpServer', x=11,50, y=14,26, z=212,50], EntityFallingSand['Falling Block'/6267, l='MpServer', x=11,50, y=14,26, z=213,50], EntityFallingSand['Falling Block'/6264, l='MpServer', x=12,50, y=14,26, z=213,50], EntityFallingSand['Falling Block'/6265, l='MpServer', x=13,50, y=14,26, z=213,50], EntityFallingSand['Falling Block'/6247, l='MpServer', x=15,50, y=16,26, z=217,50], EntitySpider['Spider'/463, l='MpServer', x=-64,50, y=41,00, z=108,50], EntityFallingSand['Falling Block'/6246, l='MpServer', x=15,50, y=16,26, z=216,50], EntityFallingSand['Falling Block'/6245, l='MpServer', x=21,50, y=57,26, z=197,50], EntityFallingSand['Falling Block'/6244, l='MpServer', x=21,50, y=57,26, z=196,50], EntityFallingSand['Falling Block'/6255, l='MpServer', x=16,50, y=15,26, z=215,50], EntityFallingSand['Falling Block'/6254, l='MpServer', x=15,50, y=16,26, z=215,50], EntityFallingSand['Falling Block'/6253, l='MpServer', x=14,50, y=16,26, z=217,50], EntityFallingSand['Falling Block'/6252, l='MpServer', x=14,50, y=16,26, z=216,50], EntityFallingSand['Falling Block'/6251, l='MpServer', x=17,50, y=16,26, z=216,50], EntityFallingSand['Falling Block'/6250, l='MpServer', x=16,50, y=17,26, z=217,50], EntityFallingSand['Falling Block'/6249, l='MpServer', x=16,50, y=16,26, z=216,50], EntityBat['Bat'/449, l='MpServer', x=-12,51, y=22,45, z=188,18], EntityFallingSand['Falling Block'/6248, l='MpServer', x=15,50, y=16,26, z=218,50], EntityBat['Bat'/448, l='MpServer', x=-141,57, y=22,55, z=236,57], EntityZombie['Zombie'/497, l='MpServer', x=-64,50, y=29,00, z=175,50], EntityZombie['Zombie'/498, l='MpServer', x=-65,50, y=28,00, z=179,84], EntityCreeper['Creeper'/492, l='MpServer', x=-131,50, y=48,00, z=240,50], EntityCreeper['Creeper'/491, l='MpServer', x=-129,50, y=48,00, z=239,50], EntityCreeper['Creeper'/490, l='MpServer', x=-130,50, y=48,00, z=241,50], EntityFallingSand['Falling Block'/5976, l='MpServer', x=-2,50, y=40,18, z=280,50], EntityFallingSand['Falling Block'/5971, l='MpServer', x=1,50, y=42,18, z=248,50], EntityFallingSand['Falling Block'/5974, l='MpServer', x=-0,50, y=40,18, z=279,50], EntityFallingSand['Falling Block'/5975, l='MpServer', x=-1,50, y=40,18, z=279,50], EntityFallingSand['Falling Block'/5972, l='MpServer', x=1,50, y=42,18, z=247,50], EntityFallingSand['Falling Block'/5973, l='MpServer', x=0,50, y=40,18, z=278,50], EntityCreeper['Creeper'/512, l='MpServer', x=-2,50, y=20,00, z=163,50], EntitySkeleton['Skeleton'/513, l='MpServer', x=-3,50, y=20,00, z=162,50], EntityFallingSand['Falling Block'/6014, l='MpServer', x=14,50, y=29,17, z=32,50], EntitySkeleton['Skeleton'/514, l='MpServer', x=-48,50, y=36,00, z=137,50], EntityFallingSand['Falling Block'/6015, l='MpServer', x=15,50, y=29,17, z=32,50], EntitySkeleton['Skeleton'/515, l='MpServer', x=-49,50, y=36,00, z=139,50], EntityFallingSand['Falling Block'/5993, l='MpServer', x=-6,50, y=5,58, z=286,50], EntityFallingSand['Falling Block'/5992, l='MpServer', x=-7,50, y=5,58, z=286,50], EntityFallingSand['Falling Block'/5995, l='MpServer', x=-7,50, y=4,58, z=284,50], EntityFallingSand['Falling Block'/5994, l='MpServer', x=-8,50, y=5,58, z=285,50], EntityFallingSand['Falling Block'/5997, l='MpServer', x=-7,50, y=3,58, z=283,50], EntityFallingSand['Falling Block'/5987, l='MpServer', x=7,50, y=53,64, z=272,50], EntityFallingSand['Falling Block'/5989, l='MpServer', x=8,50, y=53,64, z=272,50], EntityFallingSand['Falling Block'/5988, l='MpServer', x=7,50, y=53,64, z=273,50], EntityFallingSand['Falling Block'/5991, l='MpServer', x=-7,50, y=5,58, z=285,50], EntitySkeleton['Skeleton'/539, l='MpServer', x=-80,50, y=33,00, z=183,50], EntityFallingSand['Falling Block'/5990, l='MpServer', x=9,50, y=53,64, z=271,50], EntityCreeper['Creeper'/614, l='MpServer', x=-87,50, y=12,00, z=93,50], EntityFallingSand['Falling Block'/5911, l='MpServer', x=2,50, y=32,16, z=229,50], EntityFallingSand['Falling Block'/5908, l='MpServer', x=2,50, y=33,16, z=230,50], EntityFallingSand['Falling Block'/5907, l='MpServer', x=1,50, y=32,16, z=230,50], EntityFallingSand['Falling Block'/5904, l='MpServer', x=2,50, y=33,16, z=232,50], EntityFallingSand['Falling Block'/5903, l='MpServer', x=2,50, y=33,16, z=231,50], EntityFallingSand['Falling Block'/5902, l='MpServer', x=1,50, y=33,16, z=231,50], EntityFallingSand['Falling Block'/5900, l='MpServer', x=1,50, y=33,16, z=232,50], EntityFallingSand['Falling Block'/5899, l='MpServer', x=0,50, y=33,16, z=232,50], EntityFallingSand['Falling Block'/5898, l='MpServer', x=1,50, y=33,16, z=234,50], EntityFallingSand['Falling Block'/5897, l='MpServer', x=1,50, y=33,16, z=233,50], EntityCreeper['Creeper'/629, l='MpServer', x=-93,50, y=43,00, z=245,50], EntityFallingSand['Falling Block'/5896, l='MpServer', x=0,50, y=33,16, z=234,50], EntityFallingSand['Falling Block'/5895, l='MpServer', x=0,50, y=33,16, z=233,50], EntityFallingSand['Falling Block'/5888, l='MpServer', x=-0,50, y=5,10, z=170,50], EntityZombie['Zombie'/580, l='MpServer', x=-65,50, y=41,00, z=114,50], EntityFallingSand['Falling Block'/1544, l='MpServer', x=-188,50, y=29,88, z=263,50], EntityZombie['Zombie'/581, l='MpServer', x=-74,83, y=45,00, z=111,74], EntityFallingSand['Falling Block'/1542, l='MpServer', x=-186,50, y=32,16, z=262,50], EntityFallingSand['Falling Block'/1537, l='MpServer', x=-186,50, y=31,16, z=260,50], EntityFallingSand['Falling Block'/1538, l='MpServer', x=-187,50, y=32,16, z=260,50], EntityFallingSand['Falling Block'/1539, l='MpServer', x=-186,50, y=32,16, z=261,50], EntityCreeper['Creeper'/597, l='MpServer', x=-135,56, y=35,00, z=227,97], EntityCreeper['Creeper'/596, l='MpServer', x=-140,50, y=34,00, z=234,50], EntityCreeper['Creeper'/599, l='MpServer', x=-139,56, y=34,00, z=229,44], EntityCreeper['Creeper'/598, l='MpServer', x=-138,84, y=34,00, z=231,63], EntitySkeleton['Skeleton'/605, l='MpServer', x=-25,50, y=18,00, z=106,50], EntitySkeleton['Skeleton'/604, l='MpServer', x=-31,50, y=18,00, z=107,50], EntityFallingSand['Falling Block'/6099, l='MpServer', x=20,50, y=16,73, z=114,50], EntityFallingSand['Falling Block'/6098, l='MpServer', x=20,50, y=16,73, z=112,50], EntityFallingSand['Falling Block'/6097, l='MpServer', x=21,50, y=16,73, z=112,50], EntityFallingSand['Falling Block'/6096, l='MpServer', x=20,50, y=16,73, z=113,50], EntityFallingSand['Falling Block'/6103, l='MpServer', x=19,50, y=16,73, z=111,50], EntityFallingSand['Falling Block'/6102, l='MpServer', x=21,50, y=16,73, z=111,50], EntityFallingSand['Falling Block'/6101, l='MpServer', x=20,50, y=16,73, z=111,50], EntityFallingSand['Falling Block'/6100, l='MpServer', x=19,50, y=16,73, z=112,50], EntityFallingSand['Falling Block'/6107, l='MpServer', x=18,50, y=15,73, z=111,50], EntityFallingSand['Falling Block'/6106, l='MpServer', x=18,50, y=16,73, z=110,50], EntityFallingSand['Falling Block'/6105, l='MpServer', x=20,50, y=16,73, z=110,50], EntityFallingSand['Falling Block'/6104, l='MpServer', x=19,50, y=16,73, z=110,50], EntityFallingSand['Falling Block'/6110, l='MpServer', x=20,50, y=16,73, z=109,50], EntityFallingSand['Falling Block'/6109, l='MpServer', x=19,50, y=16,73, z=109,50], EntityFallingSand['Falling Block'/6108, l='MpServer', x=18,50, y=16,73, z=109,50], EntityFallingSand['Falling Block'/6086, l='MpServer', x=16,50, y=55,73, z=83,50], EntityFallingSand['Falling Block'/6087, l='MpServer', x=22,50, y=16,73, z=115,50], EntityFallingSand['Falling Block'/6085, l='MpServer', x=15,50, y=55,73, z=84,50], EntityFallingSand['Falling Block'/6090, l='MpServer', x=21,50, y=16,73, z=113,50], EntityFallingSand['Falling Block'/6091, l='MpServer', x=21,50, y=16,73, z=114,50], EntityFallingSand['Falling Block'/6088, l='MpServer', x=21,50, y=16,73, z=115,50], EntityFallingSand['Falling Block'/6089, l='MpServer', x=23,50, y=15,73, z=115,50], EntityFallingSand['Falling Block'/6094, l='MpServer', x=22,50, y=16,73, z=113,50], EntityFallingSand['Falling Block'/6095, l='MpServer', x=23,50, y=15,73, z=114,50], EntityFallingSand['Falling Block'/6092, l='MpServer', x=21,50, y=16,73, z=116,50], EntityFallingSand['Falling Block'/6093, l='MpServer', x=22,50, y=15,73, z=114,50], EntityFallingSand['Falling Block'/6137, l='MpServer', x=8,50, y=63,96, z=107,50], EntityFallingSand['Falling Block'/6139, l='MpServer', x=13,50, y=9,88, z=126,50], EntityFallingSand['Falling Block'/6138, l='MpServer', x=13,50, y=9,88, z=127,50], EntityFallingSand['Falling Block'/6141, l='MpServer', x=19,50, y=25,96, z=146,50], EntityFallingSand['Falling Block'/6140, l='MpServer', x=20,50, y=24,96, z=147,50], EntityFallingSand['Falling Block'/6143, l='MpServer', x=7,50, y=32,96, z=147,50], EntityFallingSand['Falling Block'/6142, l='MpServer', x=19,50, y=25,96, z=145,50], EntityZombie['Zombie'/669, l='MpServer', x=-0,50, y=40,00, z=151,50], EntityZombie['Zombie'/670, l='MpServer', x=1,69, y=40,00, z=145,53], EntitySpider['Spider'/671, l='MpServer', x=-1,28, y=40,00, z=148,22], EntityFallingSand['Falling Block'/6039, l='MpServer', x=13,50, y=59,46, z=33,50], EntityFallingSand['Falling Block'/6038, l='MpServer', x=12,50, y=58,46, z=33,50], EntityFallingSand['Falling Block'/6037, l='MpServer', x=14,50, y=58,46, z=34,50], EntityFallingSand['Falling Block'/6036, l='MpServer', x=13,50, y=59,46, z=34,50], EntityFallingSand['Falling Block'/6035, l='MpServer', x=12,50, y=59,46, z=34,50], EntityFallingSand['Falling Block'/6034, l='MpServer', x=11,50, y=58,46, z=34,50], EntityFallingSand['Falling Block'/6033, l='MpServer', x=13,50, y=59,46, z=35,50], EntityFallingSand['Falling Block'/6032, l='MpServer', x=12,50, y=59,46, z=35,50], EntityFallingSand['Falling Block'/6047, l='MpServer', x=12,50, y=14,46, z=44,50], EntityFallingSand['Falling Block'/6046, l='MpServer', x=11,50, y=14,46, z=43,50], EntityFallingSand['Falling Block'/6045, l='MpServer', x=14,50, y=26,46, z=45,50], EntityFallingSand['Falling Block'/6044, l='MpServer', x=12,50, y=29,46, z=45,50], EntityFallingSand['Falling Block'/6043, l='MpServer', x=13,50, y=29,46, z=45,50], EntityFallingSand['Falling Block'/6042, l='MpServer', x=13,50, y=26,46, z=44,50], EntityFallingSand['Falling Block'/6041, l='MpServer', x=12,50, y=28,46, z=44,50], EntityFallingSand['Falling Block'/6040, l='MpServer', x=12,50, y=58,46, z=32,50], EntityFallingSand['Falling Block'/6018, l='MpServer', x=15,50, y=28,17, z=34,50], EntityFallingSand['Falling Block'/6016, l='MpServer', x=14,50, y=28,17, z=33,50], EntityFallingSand['Falling Block'/6017, l='MpServer', x=15,50, y=29,17, z=33,50], EntityFallingSand['Falling Block'/6030, l='MpServer', x=12,50, y=58,46, z=36,50], EntityFallingSand['Falling Block'/6031, l='MpServer', x=11,50, y=58,46, z=35,50], EntityCreeper['Creeper'/6028, l='MpServer', x=-106,50, y=16,00, z=226,50], EntityFallingSand['Falling Block'/6052, l='MpServer', x=16,50, y=33,46, z=61,50], EntityFallingSand['Falling Block'/6053, l='MpServer', x=17,50, y=33,46, z=60,50], EntityFallingSand['Falling Block'/6054, l='MpServer', x=17,50, y=33,46, z=61,50], EntityFallingSand['Falling Block'/6055, l='MpServer', x=18,50, y=33,46, z=61,50], EntityFallingSand['Falling Block'/6048, l='MpServer', x=13,50, y=14,46, z=44,50], EntityFallingSand['Falling Block'/6050, l='MpServer', x=20,50, y=35,46, z=60,50], EntityFallingSand['Falling Block'/6051, l='MpServer', x=21,50, y=35,46, z=61,50], EntityFallingSand['Falling Block'/6056, l='MpServer', x=18,50, y=35,46, z=59,50], EntityFallingSand['Falling Block'/5752, l='MpServer', x=0,50, y=46,78, z=42,50], EntityFallingSand['Falling Block'/5750, l='MpServer', x=1,50, y=47,78, z=43,50], EntityFallingSand['Falling Block'/5751, l='MpServer', x=0,50, y=45,78, z=43,50], EntityFallingSand['Falling Block'/5644, l='MpServer', x=-18,50, y=41,93, z=297,50], EntityFallingSand['Falling Block'/5641, l='MpServer', x=-17,50, y=42,93, z=295,50], EntityFallingSand['Falling Block'/5640, l='MpServer', x=-18,50, y=41,93, z=296,50], EntityFallingSand['Falling Block'/5643, l='MpServer', x=-16,50, y=42,93, z=296,50], EntityFallingSand['Falling Block'/5642, l='MpServer', x=-17,50, y=42,93, z=296,50], EntityFallingSand['Falling Block'/5637, l='MpServer', x=-13,50, y=42,93, z=292,50], EntityFallingSand['Falling Block'/5638, l='MpServer', x=-12,50, y=42,93, z=292,50], EntityFallingSand['Falling Block'/5824, l='MpServer', x=-1,50, y=8,55, z=178,50], EntityFallingSand['Falling Block'/5825, l='MpServer', x=-0,50, y=9,55, z=178,50], EntityFallingSand['Falling Block'/5826, l='MpServer', x=0,50, y=9,55, z=177,50], EntityFallingSand['Falling Block'/5827, l='MpServer', x=-2,50, y=8,55, z=178,50], EntityFallingSand['Falling Block'/5828, l='MpServer', x=-3,50, y=8,55, z=179,50], EntityFallingSand['Falling Block'/5829, l='MpServer', x=-3,50, y=8,55, z=178,50], EntityFallingSand['Falling Block'/5883, l='MpServer', x=-4,50, y=9,10, z=179,50], EntityFallingSand['Falling Block'/5882, l='MpServer', x=-1,50, y=10,10, z=179,50], EntityFallingSand['Falling Block'/5887, l='MpServer', x=-0,50, y=4,10, z=169,50], EntityFallingSand['Falling Block'/5886, l='MpServer', x=-1,50, y=5,10, z=170,50], EntityFallingSand['Falling Block'/5781, l='MpServer', x=8,50, y=30,61, z=132,50], EntityFallingSand['Falling Block'/5780, l='MpServer', x=8,50, y=29,61, z=131,50], EntityFallingSand['Falling Block'/5783, l='MpServer', x=8,50, y=29,61, z=130,50], EntityFallingSand['Falling Block'/5782, l='MpServer', x=7,50, y=30,61, z=131,50], EntityFallingSand['Falling Block'/5789, l='MpServer', x=7,50, y=31,61, z=133,50], EntityFallingSand['Falling Block'/5788, l='MpServer', x=7,50, y=31,61, z=132,50], EntityFallingSand['Falling Block'/5790, l='MpServer', x=8,50, y=31,61, z=133,50], EntityFallingSand['Falling Block'/5785, l='MpServer', x=5,50, y=31,61, z=133,50], EntityFallingSand['Falling Block'/5784, l='MpServer', x=5,50, y=31,61, z=132,50], EntityFallingSand['Falling Block'/5787, l='MpServer', x=6,50, y=31,61, z=132,50], EntityFallingSand['Falling Block'/5786, l='MpServer', x=6,50, y=30,61, z=131,50], EntityFallingSand['Falling Block'/5823, l='MpServer', x=-1,50, y=8,55, z=177,50], EntityFallingSand['Falling Block'/5822, l='MpServer', x=-1,50, y=8,55, z=176,50], EntityFallingSand['Falling Block'/5821, l='MpServer', x=-2,50, y=8,55, z=177,50], EntityFallingSand['Falling Block'/5820, l='MpServer', x=-2,50, y=8,55, z=176,50], EntityFallingSand['Falling Block'/5819, l='MpServer', x=-0,50, y=9,55, z=177,50], EntityFallingSand['Falling Block'/5818, l='MpServer', x=-0,50, y=9,55, z=176,50]] 2014-03-05 20:46:40 [Infos] [STDOUT] Retry entities: 0 total; [] 2014-03-05 20:46:40 [Infos] [STDOUT] Server brand: fml,forge 2014-03-05 20:46:40 [Infos] [STDOUT] Server type: Integrated singleplayer server 2014-03-05 20:46:40 [Infos] [STDOUT] Stacktrace: 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:856) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-03-05 20:46:40 [Infos] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-03-05 20:46:40 [Infos] [STDOUT] 2014-03-05 20:46:40 [Infos] [STDOUT] – System Details -- 2014-03-05 20:46:40 [Infos] [STDOUT] Details: 2014-03-05 20:46:40 [Infos] [STDOUT] Minecraft Version: 1.6.4 2014-03-05 20:46:40 [Infos] [STDOUT] Operating System: Windows 7 (amd64) version 6.1 2014-03-05 20:46:40 [Infos] [STDOUT] Java Version: 1.7.0_51, Oracle Corporation 2014-03-05 20:46:40 [Infos] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation 2014-03-05 20:46:40 [Infos] [STDOUT] Memory: 725902224 bytes (692 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) 2014-03-05 20:46:40 [Infos] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 2014-03-05 20:46:40 [Infos] [STDOUT] AABB Pool Size: 16691 (934696 bytes; 0 MB) allocated, 2340 (131040 bytes; 0 MB) used 2014-03-05 20:46:40 [Infos] [STDOUT] Suspicious classes: FML and Forge are installed 2014-03-05 20:46:40 [Infos] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63 2014-03-05 20:46:40 [Infos] [STDOUT] FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active 2014-03-05 20:46:40 [Infos] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-03-05 20:46:40 [Infos] [STDOUT] FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-03-05 20:46:40 [Infos] [STDOUT] Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-03-05 20:46:40 [Infos] [STDOUT] UltimateUniverseMod{1.0.0} [Ultimate Universe Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2014-03-05 20:46:40 [Infos] [STDOUT] Launched Version: 1.6 2014-03-05 20:46:40 [Infos] [STDOUT] LWJGL: 2.9.0 2014-03-05 20:46:40 [Infos] [STDOUT] OpenGL: GeForce GTX 555/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation 2014-03-05 20:46:40 [Infos] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge' 2014-03-05 20:46:40 [Infos] [STDOUT] Type: Client (map_client.txt) 2014-03-05 20:46:40 [Infos] [STDOUT] Resource Pack: Default 2014-03-05 20:46:40 [Infos] [STDOUT] Current Language: English (US) 2014-03-05 20:46:40 [Infos] [STDOUT] Profiler Position: N/A (disabled) 2014-03-05 20:46:40 [Infos] [STDOUT] Vec3 Pool Size: 3237 (181272 bytes; 0 MB) allocated, 852 (47712 bytes; 0 MB) used 2014-03-05 20:46:40 [Infos] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Alexandre\Desktop\Ressources\modding\forge MobTest\mcp\jars\.\crash-reports\crash-2014-03-05_20.46.40-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
-
@Override public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float tick) { this.renderTileEntityBasicSolarPanelAt((TileEntityBasicSolarPanel)te, x, y, z, tick); } public void renderTileEntityBasicSolarPanelAt(TileEntityBasicSolarPanel te, double x, double y, double z, float tick) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); this.bindTexture(textureLocation); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(0.0625F); GL11.glPopMatrix(); }
Comme ça.
-
Franchement Merci Robin Pour ton aide, ta patience je sais que sa n’a pas été facile mais sa marche enfin !!
Un grand Merci a toi 100000000 merci
sur ce bonne continuation -
Salut touts le monde ! ,
Dessolé de relancer le topique mais je souhaiterai savoir si il est possible de faire un rendu de bloc complex sans passé par TESR car il est reload a chaque ticks or moi c’est pas se que je veut . Y aurai il un autre moyen de faire un rendu techne sans TESR ?
Cordialement Sidney
Merci d avance pour vos réponses -
@‘sisidney’:
Salut touts le monde ! ,
Dessolé de relancer le topique mais je souhaiterai savoir si il est possible de faire un rendu de bloc complex sans passé par TESR car il est reload a chaque ticks or moi c’est pas se que je veut . Y aurai il un autre moyen de faire un rendu techne sans TESR ?
Cordialement Sidney
Merci d avance pour vos réponsesLe rendu ISBRH permet ça
-
xavpok, le ISBRH ne permet pas de rendre de modèle techne. Non, il n’existe pas d’autre moyen.
-
Ok merci de vos réponce, ne y aurai il pas un autre moyen que techne alors ?
Cordialement Sidney
-
Sans techne ni de TESR :
@‘jglrxavpok’:Le rendu ISBRH permet ça
-
Merci mais j’ai vu que l’on pouvait faire des rendu en utilisant des fichier .obj qui sont issu de Blender cela utilise il un rendu TESR ?
-
Si tu utilises des .obj, à part coder quelque chose de très long pour le convertir en ISBRH, le rendu TESR est le seul viable (et possible).
-
Salut !
Cela fait depuis hier soir que je cherche d’ou vient le package client et ou il faut le mettre, si vous pourvais me donner plus d’info sur ce package cela m’arrangerai beaucoupMerci d’avance pour vos reponce
Cordialement Sidney -
C’est à toi de le créer, c’est comme ton package common, sauf que tu remplace common par client.
Après c’est une question d’organisation, tu peux mettre la classe où tu veux. -
Ok merci de t’a reponce !
J’ai réussie en faire le rendu, tout fonctionne bien sauf quand je veut faire tourné le bloc en fonction de la position du joueur.
Voila tout met classe:Class du bloc:
package modCrafttech.common; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import modCrafttech.proxy.CraftechClientProxy; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BlockSculpture extends Block { public BlockSculpture(int id) { super(id, Material.rock); } public TileEntity createTileEntity(World world, int metadata) { if(metadata == 0) return new TileEntitySculpture(); else if(metadata == 2) return new TileEntityTutorial2(); else return null; } public boolean hasTileEntity(int metadata) { if(metadata == 0 || metadata == 2) return true; else return false; } public boolean renderAsNormalBlock() { return false; } public boolean isOpaqueCube() { return false; } @SideOnly(Side.CLIENT) public int getRenderType() { return CraftechClientProxy.renderInventoryTESRId; } public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack) { int direction = MathHelper.floor_double((double)(living.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3; TileEntity te = world.getBlockTileEntity(x, y, z); if(te != null && stack.getItemDamage() == 2 && te instanceof TileEntityTutorial2) { ((TileEntityTutorial2)te).setDirection((byte)direction); world.markBlockForUpdate(x, y, z); } } }
Class Tile Entity:
package modCrafttech.common; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.INetworkManager; import net.minecraft.network.packet.Packet; import net.minecraft.network.packet.Packet132TileEntityData; import net.minecraft.tileentity.TileEntity; public class TileEntitySculpture extends TileEntity { public byte direction; public void readFromNBT(NBTTagCompound nbtTag) { super.readFromNBT(nbtTag); direction = nbtTag.getByte("direction"); } public void writeToNBT(NBTTagCompound nbtTag) { super.writeToNBT(nbtTag); for(int i = 0; i < 5; i++) { nbtTag.setByte("direction", direction); } } public void setDirection(byte direct) { direction = direct; } public byte getDirection() { return direction; } public Packet getDescriptionPacket() { NBTTagCompound nbttagcompound = new NBTTagCompound(); this.writeToNBT(nbttagcompound); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 4, nbttagcompound); } public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) { this.readFromNBT(pkt.data); } }
Class de l’autre Tile Entity:
package modCrafttech.common; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.INetworkManager; import net.minecraft.network.packet.Packet; import net.minecraft.network.packet.Packet132TileEntityData; import net.minecraft.tileentity.TileEntity; public class TileEntityTutorial2 extends TileEntity { public byte direction; public void readFromNBT(NBTTagCompound nbtTag) { super.readFromNBT(nbtTag); direction = nbtTag.getByte("direction"); } public void writeToNBT(NBTTagCompound nbtTag) { super.writeToNBT(nbtTag); nbtTag.setByte("direction", direction); } public void setDirection(byte direct) { direction = direct; } public byte getDirection() { return direction; } public Packet getDescriptionPacket() { NBTTagCompound nbttagcompound = new NBTTagCompound(); this.writeToNBT(nbttagcompound); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 4, nbttagcompound); } public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) { this.readFromNBT(pkt.data); } }
Class du Tile entity special render :
package modCraftech.client; import org.lwjgl.opengl.GL11; import modCrafttech.common.TileEntitySculpture; import net.minecraft.client.renderer.tileentity.TileEntityRenderer; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; public class TileEntitySculptureSpecialRender extends TileEntitySpecialRenderer implements IInventoryRenderer { private final ModelBariquade model = new ModelBariquade(); public static final ResourceLocation textureLocation = new ResourceLocation("craftech", "textures/blocks/Bariquade.png"); public TileEntitySculptureSpecialRender() { this.setTileEntityRenderer(TileEntityRenderer.instance); } @Override public void renderInventory(double x, double y, double z) { this.renderTileEntitySculptureAt(null, x, y, z, 0.0F); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float tick) { this.renderTileEntitySculptureAt((TileEntitySculpture)te, x, y, z, tick); GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); this.bindTexture(textureLocation); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(0.0625F); GL11.glPopMatrix(); } public void renderTileEntitySculptureAt(TileEntitySculpture te, double x, double y, double z, float tick) { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5F, y + 1.5F, z + 0.5F); this.bindTexture(textureLocation); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(0.0625F); if(te != null) { GL11.glRotatef(90F * te.getDirection(), 0.0F, 1.0F, 0.0F); } GL11.glPopMatrix(); } }
Merci d’avance pour vos reponces
Cordialement Sidney