• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Do you have a solid grasp of Java?
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • I have intercepted the RenderPlayerEvent and also created a second class that overrides Render, I then override renderName(Entity entity, double x, double y, double z) with my own code that adds another label. How can I use this new class and use it on the player instead of the old Render class?
    • I'm trying to play some mods that i've never used and one of them uses CCL. I've never had to use it before. I've added it, deleted it, redownloaded it, and even checked the config files. Problem is, I don't have a config file for CCL because it keeps crashing on start-up. Included below is the crash report.    ---- Minecraft Crash Report ---- // You're mean. Time: 8/6/20 8:39 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from CodeChicken Lib (codechickenlib) Caused by: java.lang.NoClassDefFoundError: codechicken/lib/util/ResourceUtils     at codechicken.lib.configuration.ConfigFile.load(ConfigFile.java:53)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:43)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:29)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:19)     at codechicken.lib.CodeChickenLib.preInit(CodeChickenLib.java:50)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)     at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:629)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)     at net.minecraft.client.main.Main.main(SourceFile:123)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.ClassNotFoundException: codechicken.lib.util.ResourceUtils     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)     ... 45 more Caused by: java.lang.SecurityException: class "codechicken.lib.util.ResourceUtils"'s signer information does not match signer information of other classes in the same package     at java.lang.ClassLoader.checkCerts(ClassLoader.java:895)     at java.lang.ClassLoader.preDefineClass(ClassLoader.java:665)     at java.lang.ClassLoader.defineClass(ClassLoader.java:758)     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)     ... 47 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 495875312 bytes (472 MB) / 1073741824 bytes (1024 MB) up to 2147483648 bytes (2048 MB)     JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2854 22 mods loaded, 22 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                | Version                 | Source                                             | Signature                                |     |:----- |:----------------- |:----------------------- |:-------------------------------------------------- |:---------------------------------------- |     | LCH   | minecraft         | 1.12.2                  | minecraft.jar                                      | None                                     |     | LCH   | mcp               | 9.42                    | minecraft.jar                                      | None                                     |     | LCH   | FML               | 8.0.99.99               | forge-1.12.2-14.23.5.2854.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | forge             | 14.23.5.2854            | forge-1.12.2-14.23.5.2854.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | baubles           | 1.5.2                   | Baubles-1.12-1.5.2.jar                             | None                                     |     | LCH   | biomesoplenty     | 7.0.1.2444              | BiomesOPlenty-1.12.2-7.0.1.2444-universal.jar      | None                                     |     | LCH   | jei               | 4.15.0.296              | jei_1.12.2-4.15.0.296.jar                          | None                                     |     | LCH   | botania           | r1.10-361               | Botania+r1.10-361.jar                              | None                                     |     | LCE   | codechickenlib    | 3.2.3.358               | CodeChickenLib-1.12.2-3.2.3.358-universal.jar      | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LC    | redstoneflux      | 2.1.1                   | RedstoneFlux-1.12-2.1.1.1-universal.jar            | None                                     |     | LC    | brandonscore      | 2.4.18                  | BrandonsCore-1.12.2-2.4.18.210-universal.jar       | None                                     |     | LC    | chickens          | 6.1.0                   | chickens-6.1.0.jar                                 | None                                     |     | LC    | draconicevolution | 2.3.25                  | Draconic-Evolution-1.12.2-2.3.25.351-universal.jar | None                                     |     | LC    | hatchery          | 2.2.2                   | hatchery-1.12.2-2.2.2.jar                          | None                                     |     | LC    | ironchest         | 1.12.2-7.0.67.844       | ironchest-1.12.2-7.0.72.847.jar                    | None                                     |     | LC    | journeymap        | 1.12.2-5.7.0            | journeymap-1.12.2-5.7.0.jar                        | None                                     |     | LC    | mantle            | 1.12-1.3.3.55           | Mantle-1.12-1.3.3.55.jar                           | None                                     |     | LC    | tconstruct        | 1.12.2-2.13.0.183       | TConstruct-1.12.2-2.13.0.183.jar                   | None                                     |     | LC    | morechickens      | 3.1.0                   | morechickens-1.12.2-3.1.0 (1).jar                  | None                                     |     | LC    | projecte          | 1.12.2-PE1.4.1          | ProjectE-1.12.2-PE1.4.1.jar                        | None                                     |     | LC    | structurize       | 1.12.2-0.10.277-RELEASE | structurize-1.12.2-0.10.277-RELEASE.jar            | None                                     |     | LC    | minecolonies      | 1.12.2-0.11.811-BETA    | minecolonies-1.12.2-0.11.811-BETA-universal.jar    | None                                     |     Loaded coremods (and transformers):      GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 441.66' Renderer: 'GeForce GTX 1060 3GB/PCIe/SSE2'     Pulsar/tconstruct loaded Pulses:          - TinkerCommons (Enabled/Forced)         - TinkerWorld (Enabled/Not Forced)         - TinkerTools (Enabled/Not Forced)         - TinkerHarvestTools (Enabled/Forced)         - TinkerMeleeWeapons (Enabled/Forced)         - TinkerRangedWeapons (Enabled/Forced)         - TinkerModifiers (Enabled/Forced)         - TinkerSmeltery (Enabled/Not Forced)         - TinkerGadgets (Enabled/Not Forced)         - TinkerOredict (Enabled/Forced)         - TinkerIntegration (Enabled/Forced)         - TinkerFluids (Enabled/Forced)         - TinkerMaterials (Enabled/Forced)         - TinkerModelRegister (Enabled/Forced)
    • Hello! I'm rendering a model with a TileEntityRenderer. The rendering works fine apart from the texture, which looks like all textures in MC pasted together. I've tried to use TextureManager#bindTexture(ResourceLocation), but it doesn't affect the rendering at all.   package net.anju.larus.renderer; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import net.anju.larus.LarusMod; import net.anju.larus.block.CrucibleBlock; import net.anju.larus.block.LarusBlocks; import net.anju.larus.tileentity.CrucibleTileEntity; import net.minecraft.block.BlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.BlockRendererDispatcher; import net.minecraft.client.renderer.IRenderTypeBuffer; import net.minecraft.client.renderer.RenderType; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.client.renderer.tileentity.TileEntityRenderer; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.vector.Vector3f; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import javax.annotation.ParametersAreNonnullByDefault; @OnlyIn(Dist.CLIENT) public class CrucibleTER extends TileEntityRenderer<CrucibleTileEntity> { private final CrucibleModel crucible; private final ResourceLocation resourceLocation = new ResourceLocation(LarusMod.MODID, "textures/block/crucible/crucible.png"); public CrucibleTER(TileEntityRendererDispatcher rendererDispatcherIn) { super(rendererDispatcherIn); this.crucible = new CrucibleModel(); } @Override @ParametersAreNonnullByDefault public void render(CrucibleTileEntity tileEntityIn, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn) { World world = tileEntityIn.getWorld(); boolean flag = world != null; BlockState blockState = flag ? tileEntityIn.getBlockState() : LarusBlocks.CRUCIBLE.get().getDefaultState(); if (blockState.get(CrucibleBlock.TILTING)) { matrixStackIn.push(); float rotation = blockState.get(CrucibleBlock.FACING).getHorizontalAngle(); boolean warm = blockState.get(CrucibleBlock.WARM); matrixStackIn.translate(0.5D, 0.5D, 0.5D); matrixStackIn.rotate(Vector3f.YP.rotationDegrees(-rotation)); matrixStackIn.rotate(Vector3f.XP.rotationDegrees(50F * tileEntityIn.getCrucibleAngle(partialTicks))); matrixStackIn.translate(-0.5D, -0.5D, -0.5D); IVertexBuilder iVertexBuilder = bufferIn.getBuffer(RenderType.getSolid()); /*float angle = tileEntityIn.getCrucibleAngle(partialTicks); angle = 1.0F - angle; angle = 1.0F - angle * angle * angle; angle = -(angle * ((float) Math.PI / 2F));*/ crucible.render(matrixStackIn, iVertexBuilder, combinedLightIn, combinedOverlayIn, tileEntityIn.getContentLevel()); matrixStackIn.pop(); //Anrza: you must #push() before you pop, or it will crash } } private class CrucibleModel { private final ModelRenderer bottom; private final ModelRenderer front; private final ModelRenderer back; private final ModelRenderer right; private final ModelRenderer left; private final ModelRenderer level_1; private final ModelRenderer level_2; private final ModelRenderer level_3; public CrucibleModel() { int twi = 48; int thi = 16; //Bottom this.bottom = new ModelRenderer(twi, thi, 0, 0); this.bottom.addBox(2, 3, 2, 12, 1, 12, 0); //Front this.front = new ModelRenderer(twi, thi, 0, 0); this.front.addBox(2, 4, 12, 12, 12, 2); //Back this.back = new ModelRenderer(twi, thi, 0, 0); this.back.addBox(2, 4, 2, 12, 12, 2); //Left this.left = new ModelRenderer(twi, thi, 0, 0); this.left.addBox(2, 4, 4, 2, 12, 8); //Right this.right = new ModelRenderer(twi, thi, 0, 0); this.right.addBox(12, 4, 4, 2, 12, 8); //Levels this.level_1 = new ModelRenderer(twi, thi, 0, 0); this.level_1.addBox(4, 4, 4, 8, 2, 8); //Levels this.level_2 = new ModelRenderer(twi, thi, 0, 0); this.level_2.addBox(4, 4, 4, 8, 6, 8); //Levels this.level_3 = new ModelRenderer(twi, thi, 0, 0); this.level_3.addBox(4, 4, 4, 8, 11, 8); } public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, int level) { renderDispatcher.textureManager.bindTexture(resourceLocation); this.bottom.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); this.front.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); this.back.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); this.left.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); this.right.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); switch (level) { case 1: { level_1.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); break; } case 2: { level_2.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); break; } case 3: { level_3.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn); break; } } } } }  
  • Topics

  • Who's Online (See full list)