Jump to content

Recommended Posts

Posted

As of yet I've hated the messy standards of MinecraftForge development and I've taken to a more dynamic method of approaching item registry; my items do work and they're in the game with textures, localized names and all of the qualities I've given them but as soon as it comes to using them (for instance returning them when breaking a block) Forge fails to accept returning a new instance, for example..

 

        @Override
public Item getItemDropped(int metadata, Random random, int fortune)
{
	return new myClass();
}

 

I'll give you my registration in a spoiler but as I say, it registers fine but only seems to be able to be used if I use a static instance of it, if anyone has come across something similar it would be much appreciated if you could share what you found!

 

 

 

package com.cossacksman.qrpower.common;

import com.cossacksman.qrpower.common.blocks.WirelessAdapter;
import com.cossacksman.qrpower.common.items.WirelessReceiver;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;

public class RegistryHandler 
{
public static CreativeTabs creativeTab;

public static Block[] blocks = {
	new WirelessAdapter()
};

public static Item[] items = {
	new WirelessReceiver()
};

public static void init()
{		
	creativeTab = new CreativeTabs("QRPower") {
		@Override
		@SideOnly(Side.CLIENT)
		public Item getTabIconItem() { return Items.ender_pearl; }
	};
}

public static void registerBlocks()
{
	for (Block block : blocks) {						
		GameRegistry.registerBlock(block, block.getUnlocalizedName());
	}
}

public static void registerItems() 
{
	for (Item item : items) {
		GameRegistry.registerItem(item, item.getUnlocalizedName());
	}
}
}

 

 

 

And I'll throw in the item class I'm testing with

 

 

 

package com.cossacksman.qrpower.common.items;

import com.cossacksman.qrpower.QRPower;
import com.cossacksman.qrpower.common.RegistryHandler;

import net.minecraft.item.Item;

public class WirelessReceiver extends Item
{
public WirelessReceiver ()
{		
	maxStackSize = 32;
	setUnlocalizedName("WirelessReceiver");		
	setCreativeTab(RegistryHandler.creativeTab);
	setTextureName(QRPower.MODID + ":" + "wirelessReceiver");
}
}

 

 

 

Edit: I can get around this by using the exact same method in a HashMap but I'd prefer not to.

That is not dead which can eternal lie,

and with strange aeons even death may die.

Posted

Items are singletons, if you want to drop an item you need to pass a reference to the same Item you registered.

 

        @Override
public Item getItemDropped(int metadata, Random random, int fortune)
{
	return MyMainModClass.myCoolItem;
}

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.

Posted

I feared as such, as much as I hate to say it I may stick with using a HashMap (Technically an anonymous class derived from HashMap) for now then, likely if I encounter more issues I'll just have to stick to the old true and tested method. Thanks for the heads-up on the singleton pattern used here.

That is not dead which can eternal lie,

and with strange aeons even death may die.

Posted

I don't understand your dismay. Items / Blocks are not actually Items / Blocks. They are types. Blocks.stone defines the type of block that is stone. Items.stick defines the type of item that is a stick. Every time you create a new Item / Block instance you define a new type.

I think your wording is a bit confusing. The word "Type" generally in programming means the type of object/variable (As in what class it is or if its an integer/string/etc).

 

There is only ever one single instance of each Block/Item Class which is what you register. Every Block/Item in the world only uses that one single instance (Which is why you can never store any information in the Block/Item class directly since its shared). With TileEntities on the other hand you have one instance per Block in the world which exists(Which is why you can store information in them directly since it isn't shared).

 

So in short, you only need 1 instance of a Block which you then give to other code which requires a block as an input. The Block is just a shared instance that contains no personal information about the block.

Posted

Basically it is correct use of the English word "type" even if it isn't really correct for computer language definition of "type".

 

However, since we're discussing computer programming probably better to stick to the classic definitions ...

 

But it is difficult sometimes to explain to people the concept of why Items and Blocks are singletons without resorting to the English definition of the world type. Because the end result is you want to create a "type" of ItemStack and you do that by associating it with the relevant Item. So the Item associated defines the "type".

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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

    • 有人可以帮我吗? JVM 信息: Oracle Corporation - 1.8.0_431 - 25.431-b10java.net.preferIPv4Stack=true当前时间:15/01/2025 17:45:17主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211]主机:maven.minecraftforge.net [172.67.161.211, 104.21.58.163]主机:libraries.minecraft.net [127.0.0.1]主机:launchermeta.mojang.com [127.0.0.1]主机:piston-meta.mojang.com [127.0.0.1]主机:sessionserver.mojang.com [127.0.0.1]主机:authserver.mojang.com [未知]错误检查 sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标的有效认证路径的数据由 CreeperHost 在 <b1 上友好镜像12>https://www.creeperhost.net/ 考虑 minecraft 服务器 jar下载库找到 1 个额外的库目录考虑库 cpw.mods:securejarhandler:2.1.10 从 下载库 下载完成:校验和验证。JVM 信息:Oracle Corporation - 1.8.0_431 - 25.431-b10 java.net.preferIPv4Stack=true 当前时间:15/01/2025 17:45:17 主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211] 主机: maven.minecraftforge.net [172.67.161.211, 104.21.58.163] 主机: libraries.minecraft.net [127.0.0.1] 主机: launchermeta.mojang.com [127.0.0.1] 主机: piston-meta.mojang.com [127.0.0.1] 主机: sessionserver.mojang.com [127.0.0.1] 主机:authserver.mojang.com [未知] 错误检查 https://launchermeta.mojang.com/:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标 的有效认证路径数据由 CreeperHost 在 https://www.creeperhost.net/ 考虑 minecraft 服务器 jar 时进行镜像wnloading libraries 找到 1 个额外的库目录 考虑库 cpw.mods:securejarhandler:2.1.10 从 https://maven.creeperhost.net/cpw/mods/securejarhandler/2.1.10/securejar 下载库handler-2.1.10.jar https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.7.1/asm-analysis-9.7.1.jar 下载完成:校验和验证。 考虑到库 org.ow2.asm:asm:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar 下载完成:校验和已验证。 考虑库 org.ow2.asm:asm-commons:9.7.1 从库 org.ow2.asm:asm-commons:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.7.1/asm-tree-9.7.1.jar https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.7.1/asm-commons-9.7.1.jar https://maven.creeperhost.net/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar 下载库 下载已完成:校验 https://maven.creeperhost.net/net/minecraftforge/eventbus/6.0.5/eventbus-6.0.5.jar和已验证。 考虑库 org.ow2.asm:asm-util:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-util/9.7.1/asm-util-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/forgespi/7.0.1/forgespi-7.0.1.jar 下载完成:勾选pleted:校验和验证。 考虑库 net.minecraftforge:coremods:5.2.1 从 https://maven.creeperhost.net/net/minecraftforge/coremods/5.2.1/coremods-5.2.1.jar 下载库 下载完成:校验和验证。 考虑库 cpw.mods:modlauncher:10.0.9 从 https://maven.creeperhost.net/cpw/mods/modlauncher/10.0.9/modlauncher-10.0.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:unsafe:0.2.0 从 https://maven.creeperhost.net/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mergetool:1.1.5:api 从 https://maven.creeperhost.net/net/minecraftforge/mergetool/1.1.5/mergetool-1.1.5-api.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:core:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:toml:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar 下载库 下载完成:校验和验证。 考虑库 org.apache.maven:maven-artifact:3.8.5 从 https://maven.creeperhost.net/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar 下载完成:校验和验证。 考虑库 net.jodah:typetools:0.6.3 从 https://maven.creeperhost.net/net/jodah/typetools/0.6.3/typetools-0.6.3.jar 下载库 下载完成:校验和验证。 考虑库 net.minecrell:terminalconsoleappender:1.2.0 从 https://maven.creeperhost.net/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-reader:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-terminal:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.spongepowered:mixin:0.8.5 从 https://maven.creeperhost.net/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar 下载库 下载完成:校验和验证。 考虑库 org.openjdk.nashorn:nashorn-core:15.4 从库下载库 https://maven.creeperhost.net/org/openjdk/nashorn/nashorn-core/15.4/nashorn-core-15.4.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarSelector:0.3.19 从https://maven.creeperhost.net/net/minecraftforge/JarJarSelector/0.3.19/JarJarSelector-0.3.19.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarMetadata:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarMetadata/0.3.19/JarJarMetadata-0.3.19.jar 下载库下载完成:校验和验证。 考虑库 cpw.mods:bootstraplauncher:1.1.2 从 https://maven.creeperhost.net/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarFileSystems:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarFileSystems/0.3.19/JarJarFileSystems-0.3.19.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:fmlloader:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlloader/1.20.1-47.3.12/fmlloader-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlearlydisplay/1.20.1-47.3.12/fmlearlydisplay-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 com.github.jponge:lzma-java:1.3 从 https://maven.creeperhost.net/com/github/jponge/lzma-java/1.3/lzma-java-1.3.jar 下载库 下载已完成:校验和已验证。 考虑到库 com.google.code.findbugs:jsr305:3.0.2 从 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 下载库无法建立与 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) .security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 位于 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到请求目标 a 的有效证书路径t sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...ecode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 nlderException: 无法找到指向请求目标 的有效证书路径 sun.security.ssl.Alert.createSSLException(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Un已知来源) 位于 sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) 位于 sun.security.ssl.SSLHandshake.consume(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.TransportContext.dispatch(未知来源) 位于 sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源)。 security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) at sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在 net.minecraftforge.installer.Installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) 在 net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security。provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 sun.security.validator.PKIXValidator.doBuild(未知来源) 在 sun.security.validator.PKIXValidator.engineValidate(未知来源) 在 sun.security.validator.Validator.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.checkServerTrus ted(未知来源) ...27 更多 原因: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知来源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知来源) 在 java.security.cert.CertPathBuilder.build(未知来源) ...另外 33 个考虑库 com.google.errorprone:error_prone_annotations:2.1.3 从 https://maven.creeperhost.net/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar 下载库 下载已完成:校验和验证。 考虑到库 com.google.guava:guava:25.1-jre 从 https://maven.creeperhost.net/com/google/guava/guava/25.1-jre/guava-25.1-jre.jar 下载库下载已完成:校验和已验证。 考虑到库 com.google.j2objc:j2objc-annotations:1.1 从 https://maven.creeperhost.net/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar 下载库 下载已完成:校验和已验证。 考虑库 com.nothome:javaxdelta:2.0.1 从 https://maven.creeperhost.net/com/nothome/javaxdelta/2.0.1/javaxdelta-2.0.1.jar 下载库下载已完成:校验和已验证。 考虑库 commons-io:commons-io:2.4 从 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 下载库 无法建立与 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) 在 sun.security.ssl.TransportContext.dispatch(未知来源) 在 sun.security.ssl.SSLTransport.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 在 sun.security.ssl.SSLSocketImpl.st artHandshake(未知来源) at sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) at java.net.HttpURLConnection.getResponseCode(未知来源) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) at net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) at net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) at net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) at net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certifica请求目标 的路径 at sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted( 未知来源) ...artHandshake(未知来源) 在 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 java.net。HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.Https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) https://maven.creeperhost.net/de/oceanlabs/mcp/mcp_config/1.20.1-20230612.114412/mcp_config-1.20.1-20230612.114412.zip 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraft.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) https://maven.creeperhost.net/de/siegmar/fastcsv/2.2.2/fastcsv-2.2.2.jar 在 net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchG1317>考虑库 net.minecraftforge:binarypatcher:1.1.1 从 https://maven.creeperhost.net/net/minecraftforge/binarypatcher/1.1.1/binarypatcher-1.1.1.jar 下载库 下载已完成:校验和已验证。 考虑到库 net.minecraftforge:fmlcore:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlcore/1.20.1-47.3.12/fmlcore-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 文件存在:校验和验证。 考虑到库 net.minecraftforge:fmlloader:1.20.1-47.3.12 文件存在:校验和已验证。 考虑到库 net.minecraftforge:forge:1.20.1-47.3.12:universal 从 https://maven.creeperhost.net/net/minecraftforge/forge/1.20.1-47.3.12/forge-1.20.1-47.3.12-universal.jar 下载库下载完成:校验和验证。 考虑库 net.minecraftforge:installertools:1.4.1 从 https://maven.creeperhost.net/net/minecraftforge/installertools/1.4.1/installertools-1.4.1.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:jarsplitter:1.1.4 从 https://maven.creeperhost.net/net/minecraftforge/jarsplitter/1.1.4/jarsplitter-1.1.4.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:javafmllanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/javafmllanguage/1.20.1-47.3.12/javafmllanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:lowcodelanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/lowcodelanguage/1.20.1-47.3.12/lowcodelanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mclanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/mclanguage/1.20.1-47.3.12/mclanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.3 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.3/srgutils-0.4.3.jar 下载库 下载已完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.9 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.9/srgutils-0.4.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.5.6 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.5.6/srgutils-0.5.6.jar 下载库 下载完成:校验和验证。 考虑库 net.sf.jopt-simple:jopt-simple:5.0.4 从 https://libraries.minecraft.n 下载库et/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 无法建立与主机的连接 https://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 主机:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法在 sun.security.ssl.Alert.createSSLException(U 上找到指向请求目标 的有效证书路径)未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) 在 sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) on sun.security.ssl.HandshakeContext.dispatch(未知来源) sun.security.ssl.TransportContext.dispatch(未知来源) sun.security.ssl.SSLTransport.decode(未知来源) on sun.security.ssl.SSLSocketImpl.decode(未知来源) sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) ource) 在 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法在 sun.security 中找到指向请求目标 的有效证书路径。验证器。PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...27 更多 原因:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知源) 在 java.security.cert.CertPathBuilder.build(未知源) ...另外 33 个考虑库 net.sf.jopt-simple:jopt-simple:6.0-alpha-3 从 https://maven.creeperhost.net/net/sf/jopt-simple/jopt-simple/6.0-alpha-3/jopt-simple-6.0-alpha-3.jar 下载库 下载完成:校验和验证。 考虑到库 org.checkerframework:checker-qual:2.0.0 从 https://maven.creeperhost.net/org/checkerframework/checker-qual/2.0.0/checker-qual-2.0.0.jar 下载库 下载已完成:校验和已验证。 考虑库 org.codehaus.mojo:animal-sniffer-annotations:1.14 从 https://maven.creeperhost.net/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar 下载库下载完成:校验和验证。 考虑库 org.ow2.asm:asm-analysis:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar 库 org.ow2.asm:asm-analysis:9.2 从库 org.ow2.asm:asm-commons:9.2 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-commons:9.6 从库 org.ow2.asm:asm-commons:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar 库 org.ow2.asm:asm-commons:9.2 下载库 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.6 从库 org.ow2.asm:asm-tree:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.2/asm-9.2.jar 库 org.ow2.asm:asm:9.2 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.6 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.6/asm-9.6.jar 下载库下载已完成:校验和已验证。 考虑库 trove:trove:1.0.2 从 https://maven.creeperhost.net/trove/trove/1.0.2/trove-1.0.2.jar 下载库下载已完成:校验和已验证。 这些库下载失败。 再试一次。 com.google.code.findbugs:jsr305:3.0.2 com.google.code.gson:gson:2.10.1 commons-io:commons-io:2.4 net.sf.jopt-simple:jopt-simple:5.0.4 There was an error during installation  
    • Maybe some kind of bug with Pixelmon - something with Raids   Report it to the Creators
    • Did you make changes at the paper-global.yml file?   If not, delete this file and restart the server
    • My friends and I are playing a modified version of BMC4 and we're noticing stuff like passive mobs. (I think) like creatures/animals from Alex mobs, naturalist, let's do nature and even vanilla MC (sheep, cow, pigs, chickens, horses, donkeys) don't really spawn in, unlike the sea creatures and hostile monsters spawn in just fine and normal numbers. Here is a mod list from a crash report: https://pastebin.ubuntu.com/p/K9vJxxx6n4/ Just a quick copy and paste of the mod list from an unrelated crash report If anything please let me know if I should post pics of the mods from my mods folder I want to know how to increase their spawn rate/amount and if there are any mods that are causing the scarce appearances of these mobs
    • I'm locally hosting a server and when Connecting to it Me (and my friends) get disconnected with the Warning:  [00:55:21] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: butterrocker lost connection: Disconnected [00:55:21] [Server thread/INFO] [minecraft/MinecraftServer]: butterrocker left the game [00:55:21] [Server thread/WARN] [minecraft/Connection]: handleDisconnection() called twice Server latest.log Client latest.log This server is hosted locally, Minecraft ver 1.20.1 and forge ver 47.3.22 I can connect the the sever just fine locally, but when connecting to the IP Others and I cannot connect, I've changed "-Dfml.readTimeout=240" from 30 to 240, to no affect.  I've removed the client side config files, to No avail, Checked mod vers by moving around the files, still nothing. I'm at a loss currently. Yesterday 1/13/25 everything worked fine and My friends and I could all connect, but now we cannot. Any assistance would be greatly appreciated.  If any further information is required please let me know, Thanks!
  • Topics

×
×
  • Create New...

Important Information

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