Jump to content

DrawRect() in 1.14.4??


dyno

Recommended Posts

Hi!

I am trying to draw a rectangle in a screen.

I read about Gui#drawRect(), but it is for 1.12.2.

IS there any way to do it in 1.14.4? 

package com.olivemod.blocks.machine.energy.fluid_transporter;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.Icon;
import javax.swing.ImageIcon;

import com.mojang.blaze3d.platform.GlStateManager;
import com.olivemod.init.BlockInit;
import com.olivemod.utils.ModUtils;
import com.olivemod.utils.Reference.Reference;
import com.sun.javafx.iio.ImageStorage.ImageType;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screen.inventory.ContainerScreen;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.texture.AtlasTexture;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureAtlasSpriteStitcher;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.fluid.Fluid;
import net.minecraft.fluid.FluidState;
import net.minecraft.fluid.Fluids;
import net.minecraft.fluid.IFluidState;
import net.minecraft.inventory.container.PlayerContainer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.energy.EnergyStorage;
import net.minecraftforge.fluids.FluidStack;
import sun.java2d.loops.DrawRect;

public class FluidTransporterScreen extends ContainerScreen<FluidTransporterContainer>{
	
	private static final ResourceLocation guiLocation = new ResourceLocation(Reference.MOD_ID, "textures/gui/machine/fluid_transporter_gui.png");

	public FluidTransporterScreen(FluidTransporterContainer screenContainer, PlayerInventory inv, ITextComponent titleIn) {
		super(screenContainer, inv, titleIn);
		
		
	}
	
	@Override
	public void render(final int mouseX, final int mouseY, final float partialTick) {
		
		this.renderBackground();
		super.render(mouseX, mouseY, partialTick);
		this.renderHoveredToolTip(mouseX, mouseY);
		
		int relMouseX = mouseX - this.guiLeft;
		int relMouseY = mouseY - this.guiTop;
		
		final TileEntityFluidTransporter tileEntityFluidTransporter = this.container.tileEntityFluidTransporter;
		boolean energyBarHovered = relMouseX > 150 && relMouseX < 170 && relMouseY > 4 && relMouseY < 81;
		boolean fluidBarHovered = relMouseX > 131 && relMouseX < 150 && relMouseY > 4 && relMouseY < 81;
		
		if(energyBarHovered)
		{
			String toolTip = new TranslationTextComponent("gui." + Reference.MOD_ID + ".energy", String.valueOf(tileEntityFluidTransporter.energyStorage.getEnergyStored())).getFormattedText();
			this.renderTooltip(toolTip, mouseX, mouseY);
			
		}
		else if(fluidBarHovered)
		{
			String toolTip = new TranslationTextComponent(String.valueOf(tileEntityFluidTransporter.tank.getFluidAmount()) + "/" + String.valueOf(tileEntityFluidTransporter.tank.getCapacity())).getFormattedText();
			this.renderTooltip(toolTip, mouseX, mouseY);
		}
	}
	
	@Override
	protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
		
		super.drawGuiContainerForegroundLayer(mouseX, mouseY);
		String string = this.title.getFormattedText();
		this.font.drawString(string, (float)(this.xSize / 2 - this.font.getStringWidth(string) / 2), 6.0F, 0x404040);
		this.font.drawString(this.playerInventory.getDisplayName().getFormattedText(), 8.0F, (this.ySize - 96 + 2), 0x404040);
		if(!tileEntityFluidTransporter.tank.isEmpty())
		{ 
			String fluidInTank = tileEntityFluidTransporter.tank.getFluid().getTranslationKey();
			int amount = getFluidInTank(tileEntityFluidTransporter);
			this.font.drawString(fluidInTank + ": " + String.valueOf(amount), 9.0f, this.ySize - 95 + 2, 0x404040);
			DrawRect.
		}
		
	}

	@Override
	protected void drawGuiContainerBackgroundLayer(final float partialTicks, final int mouseX, final int mouseY) {	
		GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
		this.minecraft.getTextureManager().bindTexture(guiLocation);
		
		int startX = this.guiLeft;
		int startY = this.guiTop;
		
		// Screen #blit draws a part of the current texture (assumed to be 256x256) to the screen
		// The parameters are (x, y, u, v, width, height)		
		this.blit(startX, startY, 0, 0, this.xSize, this.ySize);
		
		final TileEntityFluidTransporter tileEntityFluidTransporter = container.tileEntityFluidTransporter;
		if(tileEntityFluidTransporter.energyStorage.getEnergyStored() > 0)
		{
			this.blit(startX + 151, startY + 5 + 74 - getEnergyProgressScaled(), 177, 36, 17,getEnergyProgressScaled());
		}
		if(tileEntityFluidTransporter.cookTime > 0)
		{
			this.blit(startX + 77, startY + 15, 176, 0, getCookProgressScaled(), 36);
		}
		
	}

	private int getFluidInTank(TileEntityFluidTransporter tileEntityFluidTransporter2) {

		/*
		 * First getFluid() -> returns the fluidStack
		 * Second getFluid() -> returns the fluid
		*/
		if(tileEntityFluidTransporter2.tank.getFluid().isEmpty())
			return 0;
		
		return tileEntityFluidTransporter2.tank.getFluidAmount()/tileEntityFluidTransporter2.tank.getCapacity() * 74;
		
	}

	final TileEntityFluidTransporter tileEntityFluidTransporter = container.tileEntityFluidTransporter;
	
	private int getCookProgressScaled() {
		
		int i = this.tileEntityFluidTransporter.cookTime;
		return i != 0 ? i*24/ModUtils.getCookTime(tileEntityFluidTransporter.inventory.getStackInSlot(2), tileEntityFluidTransporter.inventory.getStackInSlot(3), tileEntityFluidTransporter.inventory.getStackInSlot(4)) : 0;
	}

	
	private int getEnergyProgressScaled() {

		final EnergyStorage storage = tileEntityFluidTransporter.energyStorage;
		return Math.round((float)storage.getEnergyStored() / (float)storage.getMaxEnergyStored() * 74);
		
	}

	private static Icon getColoredRect(Color color) {
		
		BufferedImage image = new BufferedImage(19, 76, BufferedImage.TYPE_INT_RGB);
		Graphics graphics = image.getGraphics();
		graphics.setColor(color);
		graphics.fillRect(130, 5, 19, 76);
		graphics.setColor(Color.black);
		return new ImageIcon(image);
	}
}

p.s.

I cannot draw it on the texture because i need to render it every time with a different color.

Link to comment
Share on other sites

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

3 hours ago, Draco18s said:

I know It. 

But I need to draw a rectangular rendered with a different color with each itemstack contains. 

I.e.

Water bucket > Blue rectangular,

Lava bucket > Red rectangular...

 

#blit cannot does it or yes...?

Link to comment
Share on other sites

Haven't ever tried to do that, so I am not sure.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

7 minutes ago, Draco18s said:

Haven't ever tried to do that, so I am not sure.

I just would do the same rendered fluid bar of fluid Transporter of Thermal Expansion or Can Machine of IC2.

 

Anyway, till I won't learnt to do it, I will just print the fluid contains

Thanks for help

Link to comment
Share on other sites

Check out what other methods are available in the Screen class, what blit calls, etc. You might find what you're looking for.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

this is from a previous post on the forum, but apparently it's from Mekanism 😛:

    //Some blit param namings , thank you Mekanism
    //blit(int x, int y, int textureX, int textureY, int width, int height);
    //blit(int x, int y, TextureAtlasSprite icon, int width, int height);
    //blit(int x, int y, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight);
    //blit(int x, int y, int zLevel, float textureX, float textureY, int width, int height, int textureWidth, int textureHeight);
    //blit(int x, int y, int desiredWidth, int desiredHeight, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight);
    //innerBlit(int x, int endX, int y, int endY, int zLevel, int width, int height, float textureX, float textureY, int textureWidth, int textureHeight);

 

Edited by poopoodice
Link to comment
Share on other sites

1 hour ago, poopoodice said:

this is from a previous post on the forum, but apparently it's from Mekanism 😛:


    //Some blit param namings , thank you Mekanism
    //blit(int x, int y, int textureX, int textureY, int width, int height);
    //blit(int x, int y, TextureAtlasSprite icon, int width, int height);
    //blit(int x, int y, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight);
    //blit(int x, int y, int zLevel, float textureX, float textureY, int width, int height, int textureWidth, int textureHeight);
    //blit(int x, int y, int desiredWidth, int desiredHeight, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight);
    //innerBlit(int x, int endX, int y, int endY, int zLevel, int width, int height, float textureX, float textureY, int textureWidth, int textureHeight);

 

This should render a blue/Red/others color... rectangular?

 

I read about TextureAtlasSprite, but I didn't understand what are, when are usefull and how use them. Could explain?

 

I understood that TextureAtlasSprite are used on render blocks' textures (like shulker box, when opened), not to render GUI with my achieve

Edited by dyno
Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Add crash-reports with sites like https://paste.ee/ and paste the link to it here   Remove Optifine - if there is no change, add the new crash-report
    • Do you mean the Curseforge Launcher - just search for the modpack there and install it
    • is the “import modpack” on multiMC and AT launcher, not on forge?
    • I need help with this, I don't know what to do The error code is: ---- Minecraft Crash Report ---- // You should try our sister game, Minceraft! Time: 2024-05-26 10:22:04 Description: Rendering overlay java.lang.RuntimeException: null     at net.minecraftforge.fml.DeferredWorkQueue.runTasks(DeferredWorkQueue.java:58) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}     at net.minecraftforge.fml.core.ParallelTransition.lambda$finalActivityGenerator$2(ParallelTransition.java:35) ~[forge-1.20.2-48.1.0-universal.jar%23235!/:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:198) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:163) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:140) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1171) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:781) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:221) ~[1.20.2-forge-48.1.0.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:98) ~[fmlloader-1.20.2-48.1.0.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$makeService$0(CommonLaunchHandler.java:82) ~[fmlloader-1.20.2-48.1.0.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:17) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:40) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:58) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:96) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:13) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:10) ~[modlauncher-10.1.1.jar:?] {}     at net.minecraftforge.bootstrap.BootstrapLauncher.main(BootstrapLauncher.java:126) ~[bootstrap-1.2.0.jar:?] {}     Suppressed: java.lang.NoClassDefFoundError: net/minecraftforge/network/simple/SimpleChannel         at com.mrcrayfish.framework.platform.network.ForgeNetworkBuilder.registerHandshakeMessage(ForgeNetworkBuilder.java:120) ~[framework-forge-1.20.1-0.6.27.jar%23208!/:1.20.1-0.6.27] {re:classloading}         at com.mrcrayfish.framework.platform.network.ForgeNetworkBuilder.registerHandshakeMessage(ForgeNetworkBuilder.java:34) ~[framework-forge-1.20.1-0.6.27.jar%23208!/:1.20.1-0.6.27] {re:classloading}         at com.mrcrayfish.framework.network.Network.<clinit>(Network.java:21) ~[framework-forge-1.20.1-0.6.27.jar%23208!/:1.20.1-0.6.27] {re:classloading}         at com.mrcrayfish.framework.FrameworkSetup.init(FrameworkSetup.java:62) ~[framework-forge-1.20.1-0.6.27.jar%23208!/:1.20.1-0.6.27] {re:classloading}         at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}         at net.minecraftforge.fml.DeferredWorkQueue.lambda$makeRunnable$2(DeferredWorkQueue.java:81) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}         at net.minecraftforge.fml.DeferredWorkQueue.makeRunnable(DeferredWorkQueue.java:76) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}         at net.minecraftforge.fml.DeferredWorkQueue.lambda$runTasks$0(DeferredWorkQueue.java:60) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}         at java.util.concurrent.ConcurrentLinkedDeque.forEach(ConcurrentLinkedDeque.java:1650) ~[?:?] {}         at net.minecraftforge.fml.DeferredWorkQueue.runTasks(DeferredWorkQueue.java:60) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}         at net.minecraftforge.fml.core.ParallelTransition.lambda$finalActivityGenerator$2(ParallelTransition.java:35) ~[forge-1.20.2-48.1.0-universal.jar%23235!/:?] {re:classloading}         at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?] {}         at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}         at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}         at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:198) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}         at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}         at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:163) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}         at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:140) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}         at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1171) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:781) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.main.Main.main(Main.java:221) ~[1.20.2-forge-48.1.0.jar:?] {re:classloading,pl:runtimedistcleaner:A}         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}         at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}         at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:98) ~[fmlloader-1.20.2-48.1.0.jar:?] {}         at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$makeService$0(CommonLaunchHandler.java:82) ~[fmlloader-1.20.2-48.1.0.jar:?] {}         at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:17) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:40) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:58) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.Launcher.run(Launcher.java:96) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:13) ~[modlauncher-10.1.1.jar:?] {}         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:10) ~[modlauncher-10.1.1.jar:?] {}         at net.minecraftforge.bootstrap.BootstrapLauncher.main(BootstrapLauncher.java:126) ~[bootstrap-1.2.0.jar:?] {}     Caused by: java.lang.ClassNotFoundException: net.minecraftforge.network.simple.SimpleChannel         at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?] {}         at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}         at net.minecraftforge.securemodules.SecureModuleClassLoader.loadClass(SecureModuleClassLoader.java:392) ~[securemodules-2.2.3.jar:?] {}         at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}         at net.minecraftforge.securemodules.SecureModuleClassLoader.loadClass(SecureModuleClassLoader.java:392) ~[securemodules-2.2.3.jar:?] {}         at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}         ... 35 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Suspected Mods: NONE Stacktrace:     at net.minecraftforge.fml.DeferredWorkQueue.runTasks(DeferredWorkQueue.java:58) ~[fmlcore-1.20.2-48.1.0.jar%23231!/:?] {}     at net.minecraftforge.fml.core.ParallelTransition.lambda$finalActivityGenerator$2(ParallelTransition.java:35) ~[forge-1.20.2-48.1.0-universal.jar%23235!/:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:198) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:163) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default} -- Overlay render details -- Details:     Overlay name: net.minecraftforge.client.loading.ForgeLoadingOverlay Stacktrace:     at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:1387) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1211) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:781) ~[client-1.20.2-20230921.100330-srg.jar%23230!/:?] {re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,xf:fml:xaerominimap:xaero_minecraftclient,xf:fml:xaeroworldmap:xaero_wm_minecraftclient,pl:mixin:APP:bookshelf.common.mixins.json:accessors.client.AccessorMinecraft,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:balm.forge.mixins.json:MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:221) ~[1.20.2-forge-48.1.0.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:98) ~[fmlloader-1.20.2-48.1.0.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$makeService$0(CommonLaunchHandler.java:82) ~[fmlloader-1.20.2-48.1.0.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:17) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:40) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:58) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:96) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:13) ~[modlauncher-10.1.1.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:10) ~[modlauncher-10.1.1.jar:?] {}     at net.minecraftforge.bootstrap.BootstrapLauncher.main(BootstrapLauncher.java:126) ~[bootstrap-1.2.0.jar:?] {} -- Last reload -- Details:     Reload number: 1     Reload reason: initial     Finished: No     Packs: vanilla, mod_resources -- System Details -- Details:     Minecraft Version: 1.20.2     Minecraft Version ID: 1.20.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.8, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 598872400 bytes (571 MiB) / 1006632960 bytes (960 MiB) up to 2147483648 bytes (2048 MiB)     CPUs: 16     Processor Vendor: GenuineIntel     Processor Name: 13th Gen Intel(R) Core(TM) i5-13400F     Identifier: Intel64 Family 6 Model 191 Stepping 2     Microarchitecture: unknown     Frequency (GHz): 2.50     Number of physical packages: 1     Number of physical CPUs: 10     Number of logical CPUs: 16     Graphics card #0 name: NVIDIA GeForce RTX 4060 Ti     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x2803     Graphics card #0 versionInfo: DriverVersion=32.0.15.5585     Memory slot #0 capacity (MB): 16384.00     Memory slot #0 clockSpeed (GHz): 4.80     Memory slot #0 type: Unknown     Memory slot #1 capacity (MB): 16384.00     Memory slot #1 clockSpeed (GHz): 4.80     Memory slot #1 type: Unknown     Virtual memory max (MB): 37723.95     Virtual memory used (MB): 17568.76     Swap memory total (MB): 5120.00     Swap memory used (MB): 124.64     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     JVM uptime in seconds: 14.944     Launched Version: 1.20.2-forge-48.1.0     Backend library: LWJGL version 3.3.2+13     Backend API: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 555.85, NVIDIA Corporation     Window size: 3840x2160     GL Caps: Using framebuffer using OpenGL 3.2     GL debug messages: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Texture name does not refer to a texture object generated by OpenGL.' x 1     Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     Graphics mode: fancy     Resource Packs:      Current Language: es_mx     Locale: es_MX     CPU: 16x 13th Gen Intel(R) Core(TM) i5-13400F     OptiFine Version: OptiFine_1.20.2_HD_U_I7_pre1     OptiFine Build: 20231221-121621     Render Distance Chunks: 29     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 4.6.0 NVIDIA 555.85     OpenGlRenderer: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2     OpenGlVendor: NVIDIA Corporation     CpuCount: 16     ModLauncher: 10.1.1     ModLauncher launch target: forge_client     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.2.0.jar eventbus PLUGINSERVICE          fmlloader-1.20.2-48.1.0.jar slf4jfixer PLUGINSERVICE          fmlloader-1.20.2-48.1.0.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.20.2-48.1.0.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.20.2-48.1.0.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.1.1.jar accesstransformer PLUGINSERVICE          fmlloader-1.20.2-48.1.0.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.1.1.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.1.1.jar OptiFine TRANSFORMATIONSERVICE          modlauncher-10.1.1.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          [email protected]         lowcodefml@48         javafml@null     Mod List:          client-1.20.2-20230921.100330-srg.jar             |Minecraft                     |minecraft                     |1.20.2              |SIDED_SETU|Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         Compressed Blocks-forge-1.20.2-1.5.1.jar          |Compressed Blocks             |compressedblocks              |1.5.1               |SIDED_SETU|Manifest: NOSIGNATURE         JustEnoughBeacons-Forge-1.19+-1.1.2.jar           |JustEnoughBeacons             |just_enough_beacons           |1.1.2               |SIDED_SETU|Manifest: NOSIGNATURE         EnchantmentDescriptions-Forge-1.20.2-18.0.7.jar   |EnchantmentDescriptions       |enchdesc                      |18.0.7              |SIDED_SETU|Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5         TerraBlender-forge-1.20.2-3.2.0.14.jar            |TerraBlender                  |terrablender                  |3.2.0.14            |SIDED_SETU|Manifest: NOSIGNATURE         MouseTweaks-forge-mc1.20.2-2.26.jar               |Mouse Tweaks                  |mousetweaks                   |2.26                |SIDED_SETU|Manifest: NOSIGNATURE         supermartijn642configlib-1.1.8-forge-mc1.20.2.jar |SuperMartijn642's Config Libra|supermartijn642configlib      |1.1.8               |SIDED_SETU|Manifest: NOSIGNATURE         DisenchantmentEditTable-1.20.2-1.2.0.jar          |Disenchantment Edit Table     |editenchanting                |1.2.0               |SIDED_SETU|Manifest: NOSIGNATURE         OnlyHammers-1.20.2-0.5-Forge.jar                  |OnlyHammers                   |onlyhammers                   |1.20.2-0.5          |SIDED_SETU|Manifest: NOSIGNATURE         BiomesOPlenty-1.20.2-18.2.0.53.jar                |Biomes O' Plenty              |biomesoplenty                 |18.2.0.53           |SIDED_SETU|Manifest: NOSIGNATURE         jei-1.20.2-forge-16.0.0.28.jar                    |Just Enough Items             |jei                           |16.0.0.28           |SIDED_SETU|Manifest: NOSIGNATURE         grindenc-forge-1.20.x-v2.1.jar                    |Grindstone Enchantments       |grindenc                      |2.1                 |SIDED_SETU|Manifest: NOSIGNATURE         spectrelib-forge-0.14.1+1.20.2.jar                |SpectreLib                    |spectrelib                    |0.14.1+1.20.2       |SIDED_SETU|Manifest: NOSIGNATURE         supermartijn642corelib-1.1.17-forge-mc1.20.2.jar  |SuperMartijn642's Core Lib    |supermartijn642corelib        |1.1.17              |SIDED_SETU|Manifest: NOSIGNATURE         packedup-1.0.30-forge-mc1.20.2.jar                |Packed Up                     |packedup                      |1.0.30              |SIDED_SETU|Manifest: NOSIGNATURE         caelus-forge-4.0.0+1.20.2.jar                     |Caelus API                    |caelus                        |4.0.0+1.20.2        |SIDED_SETU|Manifest: NOSIGNATURE         Xaeros_Minimap_24.1.1_Forge_1.20.2.jar            |Xaero's Minimap               |xaerominimap                  |24.1.1              |SIDED_SETU|Manifest: NOSIGNATURE         waystones-forge-1.20.2-15.2.0.jar                 |Waystones                     |waystones                     |15.2.0              |SIDED_SETU|Manifest: NOSIGNATURE         TaxFreeLevels-1.3.13-forge-1.20.2.jar             |Tax Free Levels               |taxfreelevels                 |1.3.13              |SIDED_SETU|Manifest: NOSIGNATURE         goldenhopper-forge-1.20.1-1.4.1.jar               |Golden Hopper                 |goldenhopper                  |1.4.1               |SIDED_SETU|Manifest: 0d:78:5f:44:c0:47:0c:8c:e2:63:a3:04:43:d4:12:7d:b0:7c:35:37:dc:40:b1:c1:98:ec:51:eb:3b:3c:45:99         advancednetherite-forge-2.0.2-1.20.2.jar          |Advanced Netherite            |advancednetherite             |2.0.2               |SIDED_SETU|Manifest: NOSIGNATURE         XaerosWorldMap_1.38.4_Forge_1.20.2.jar            |Xaero's World Map             |xaeroworldmap                 |1.38.4              |SIDED_SETU|Manifest: NOSIGNATURE         comforts-forge-7.0.1+1.20.2.jar                   |Comforts                      |comforts                      |7.0.1+1.20.2        |SIDED_SETU|Manifest: NOSIGNATURE         elevatorid-1.20.2-1.9.1-forge.jar                 |Elevator Mod                  |elevatorid                    |1.20.2-1.9.1-forge  |SIDED_SETU|Manifest: NOSIGNATURE         Bookshelf-Forge-1.20.2-21.0.14.jar                |Bookshelf                     |bookshelf                     |21.0.14             |SIDED_SETU|Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5         endercrop-1.20.1-1.7.0.jar                        |Ender Crop                    |endercrop                     |1.20.1-1.7.0        |SIDED_SETU|Manifest: NOSIGNATURE         BetterFurnaces-1.20.2-1.0.4-forge.jar             |Better Furnaces Reforged      |betterfurnacesreforged        |1.0.4               |SIDED_SETU|Manifest: NOSIGNATURE         architectury-10.1.20-minecraftforge.jar           |Architectury                  |architectury                  |10.1.20             |SIDED_SETU|Manifest: NOSIGNATURE         FactoryAPI-1.20.2-2.1.1-forge.jar                 |Factory API                   |factory_api                   |2.1.1               |SIDED_SETU|Manifest: NOSIGNATURE         balm-forge-1.20.2-8.0.5.jar                       |Balm                          |balm                          |8.0.5               |SIDED_SETU|Manifest: NOSIGNATURE         trashcans-1.0.18b-forge-mc1.20.jar                |Trash Cans                    |trashcans                     |1.0.18b             |SIDED_SETU|Manifest: NOSIGNATURE         Simplest_Excavators_forge_1.20.1-1.1.1.jar        |Simplest Excavators           |simplest_excavators           |1.1.1               |SIDED_SETU|Manifest: NOSIGNATURE         inventoryessentials-forge-1.20.2-9.0.1.jar        |Inventory Essentials          |inventoryessentials           |9.0.1               |SIDED_SETU|Manifest: NOSIGNATURE         framework-forge-1.20.1-0.6.27.jar                 |Framework                     |framework                     |0.6.27              |SIDED_SETU|Manifest: 0d:78:5f:44:c0:47:0c:8c:e2:63:a3:04:43:d4:12:7d:b0:7c:35:37:dc:40:b1:c1:98:ec:51:eb:3b:3c:45:99         FallingTree-1.20.2-5.0.6.jar                      |FallingTree                   |fallingtree                   |5.0.6               |SIDED_SETU|Manifest: 3c:8e:df:6c:df:a6:2a:9f:af:64:ea:04:9a:cf:65:92:3b:54:93:0e:96:50:b4:52:e1:13:42:18:2b:ae:40:29         BetterThanMending-1.7.2.jar                       |BetterThanMending             |betterthanmending             |1.7.2               |SIDED_SETU|Manifest: NOSIGNATURE         forge-1.20.2-48.1.0-universal.jar                 |Forge                         |forge                         |48.1.0              |SIDED_SETU|Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         toms_storage-1.20.2-1.6.8.jar                     |Tom's Simple Storage Mod      |toms_storage                  |1.6.8               |SIDED_SETU|Manifest: NOSIGNATURE         FastLeafDecay-31.jar                              |Fast Leaf Decay               |fastleafdecay                 |31                  |SIDED_SETU|Manifest: NOSIGNATURE         wso16-forge-1.1.jar                               |Why stacks of 16?             |wso16                         |1.1                 |SIDED_SETU|Manifest: NOSIGNATURE         ironchest-1.20.2-14.5.7.jar                       |Iron Chests                   |ironchest                     |1.20.2-14.5.7       |SIDED_SETU|Manifest: NOSIGNATURE     Crash Report UUID: 80a4d440-910c-41ec-8656-c2f2304db622     FML: 48.1     Forge: net.minecraftforge:48.1.0  
  • Topics

×
×
  • Create New...

Important Information

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