先上报错:
---- Minecraft Crash Report ----
// You're mean.
Time: 2022-11-21 18:34:21
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'redaggool'!
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:459)
at net.minecraft.client.main.Main.main(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'client' provided by 'redaggool'
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:56)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47)
... 9 more
Caused by: net.fabricmc.loader.api.LanguageAdapterException: Class top.potatoelf.potatoelf.redaggool.client.RedaggoolClient cannot be cast to net.fabricmc.api.ClientModInitializer!
at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:63)
at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117)
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53)
... 10 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:459)
-- Initialization --
Details:
Modules:
ADVAPI32.dll:高级 Windows 32 基本 API:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
COMCTL32.dll:用户体验控件库:6.10 (WinBuild.160101.0800):Microsoft Corporation
CRYPT32.dll:加密 API32:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
CRYPTBASE.dll:Base cryptographic API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTSP.dll:Cryptographic Service Provider API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
DBGHELP.DLL:Windows Image Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
DNSAPI.dll:DNS 客户端 API DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
GDI32.dll:GDI Client DLL:10.0.22621.608 (WinBuild.160101.0800):Microsoft Corporation
IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.22621.755 (WinBuild.160101.0800):Microsoft Corporation
IPHLPAPI.DLL:IP 帮助程序 API:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
KERNEL32.DLL:Windows NT 基本 API 客户端 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
KERNELBASE.dll:Windows NT 基本 API 客户端 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
MpOav.dll:IOfficeAntiVirus Module:4.18.2210.6 (WinBuild.160101.0800):Microsoft Corporation
NSI.dll:NSI User-mode interface DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
NTASN1.dll:Microsoft ASN.1 API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
OLEAUT32.dll:OLEAUT32.DLL:10.0.22621.608 (WinBuild.160101.0800):Microsoft Corporation
Ole32.dll:用于 Windows 的 Microsoft OLE:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
PSAPI.DLL:Process Status Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
Pdh.dll:Windows 性能数据助手 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
RPCRT4.dll:远程过程调用运行时:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
SHCORE.dll:SHCORE:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
SHELL32.dll:Windows Shell 公用 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
USER32.dll:多用户 Windows 用户 API 客户端 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
USERENV.dll:Userenv:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
VCRUNTIME140.dll:Microsoft® C Runtime Library:14.28.29913.0 built by: vcwrkspc:Microsoft Corporation
VERSION.dll:Version Checking and File Installation Libraries:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WINHTTP.dll:Windows HTTP 服务:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
WINMM.dll:MCI API DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
WS2_32.dll:Windows Socket 2.0 32 位 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
WSOCK32.dll:Windows Socket 32-Bit DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
amsi.dll:Anti-Malware Scan Interface:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
bcrypt.dll:Windows 加密基元库:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
breakgen64.dll
clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
combase.dll:用于 Windows 的 Microsoft COM:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
dbgcore.DLL:Windows Core Debugging Helpers:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
dhcpcsvc.DLL:DHCP 客户端服务:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
dhcpcsvc6.DLL:DHCPv6 客户端:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
fwpuclnt.dll:FWP/IPsec 用户模式 API:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
gdi32full.dll:GDI Client DLL:10.0.22621.674 (WinBuild.160101.0800):Microsoft Corporation
iertutil.dll:Internet Explorer 的运行时实用程序:11.00.22621.818 (WinBuild.160101.0800):Microsoft Corporation
instrument.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
java.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
java.exe:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
jemalloc.dll
jimage.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
jli.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
jna6194590787468636958.dll:JNA native library:6.1.2:Java(TM) Native Access (JNA)
jsvml.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
jvm.dll:OpenJDK 64-Bit server VM:17.0.2.0:Oracle Corporation
kernel.appcore.dll:AppModel API Host:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
lwjgl.dll
management.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
management_ext.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
msvcp140.dll:Microsoft® C Runtime Library:14.28.29913.0 built by: vcwrkspc:Microsoft Corporation
msvcp_win.dll:Microsoft® C Runtime Library:10.0.22621.608 (WinBuild.160101.0800):Microsoft Corporation
msvcrt.dll:Windows NT CRT DLL:7.0.22621.608 (WinBuild.160101.0800):Microsoft Corporation
mswsock.dll:Microsoft Windows Sockets 2.0 服务提供程序:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
napinsp.dll:电子邮件命名填充提供程序:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
ncrypt.dll:Windows NCrypt 路由器:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
net.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
netutils.dll:Net Win32 API Helpers DLL:10.0.22621.674 (WinBuild.160101.0800):Microsoft Corporation
nio.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
nlansp_c.dll:NLA Namespace Service Provider DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
ntdll.dll:NT 层 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
perfos.dll:Windows 系统性能对象 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
pfclient.dll:SysMain Client:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
pnrpnsp.dll:PNRP 命名空间提供程序:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
profapi.dll:User Profile Basic API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
rasadhlp.dll:Remote Access AutoDial Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
shlwapi.dll:外壳简易实用工具库:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
srvcli.dll:Server Service Client DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
sunmscapi.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
ucrtbase.dll:Microsoft® C Runtime Library:10.0.22621.608 (WinBuild.160101.0800):Microsoft Corporation
urlmon.dll:Win32 的 OLE32 扩展:11.00.22621.818 (WinBuild.160101.0800):Microsoft Corporation
vcruntime140_1.dll:Microsoft® C Runtime Library:14.28.29913.0 built by: vcwrkspc:Microsoft Corporation
verify.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
win32u.dll:Win32u:10.0.22621.819 (WinBuild.160101.0800):Microsoft Corporation
windows.storage.dll:Microsoft WinRT Storage API:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
winrnr.dll:LDAP RnR Provider DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
wintypes.dll:Windows 基本类型 DLL:10.0.22621.818 (WinBuild.160101.0800):Microsoft Corporation
wshbth.dll:Windows Sockets Helper DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
zip.dll:OpenJDK Platform binary:17.0.2.0:Oracle Corporation
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:205)
at net.minecraft.client.main.Main.main(Main.java:51)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
-- System Details --
Details:
Minecraft Version: 1.19.2
Minecraft Version ID: 1.19.2
Operating System: Windows 11 (amd64) version 10.0
Java Version: 17.0.2, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 218225152 bytes (208 MiB) / 923795456 bytes (881 MiB) up to 2097152000 bytes (2000 MiB)
CPUs: 4
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz
Identifier: Intel64 Family 6 Model 142 Stepping 12
Microarchitecture: unknown
Frequency (GHz): 2.59
Number of physical packages: 1
Number of physical CPUs: 2
Number of logical CPUs: 4
Graphics card #0 name: Intel(R) UHD Graphics
Graphics card #0 vendor: Intel Corporation (0x8086)
Graphics card #0 VRAM (MB): 1024.00
Graphics card #0 deviceId: 0x9b41
Graphics card #0 versionInfo: DriverVersion=27.20.100.9316
Memory slot #0 capacity (MB): 8192.00
Memory slot #0 clockSpeed (GHz): 2.67
Memory slot #0 type: DDR4
Virtual memory max (MB): 12862.97
Virtual memory used (MB): 10130.36
Swap memory total (MB): 4864.00
Swap memory used (MB): 540.16
JVM Flags: 0 total;
Fabric Mods:
fabric-api: Fabric API 0.66.0+1.19.2
fabric-api-base: Fabric API Base 0.4.12+93d8cb8290
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.10+93d8cb8290
fabric-biome-api-v1: Fabric Biome API (v1) 9.0.18+c6af733c90
fabric-block-api-v1: Fabric Block API (v1) 1.0.0+12bfe4ea90
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.21+c6af733c90
fabric-client-tags-api-v1: Fabric Client Tags 1.0.2+b35fea8390
fabric-command-api-v2: Fabric Command API (v2) 2.1.8+93d8cb8290
fabric-content-registries-v0: Fabric Content Registries (v0) 3.4.1+6064db2a90
fabric-convention-tags-v1: Fabric Convention Tags 1.1.2+93d8cb8290
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.6+aeb40ebe90
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 5.2.3+b598f4ac90
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.32+0dd10df690
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.0+a1d87cb890
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.29+c6af733c90
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.22+c6af733c90
fabric-gametest-api-v1: Fabric Game Test API (v1) 1.1.2+704e47e990
fabric-item-api-v1: Fabric Item API (v1) 1.5.8+93d8cb8290
fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.33+70efcffe90
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.22+aaaf9d3390
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.0+33ffe9ec90
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.7+83a8659290
fabric-message-api-v1: Fabric Message API (v1) 5.0.4+93d8cb8290
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.18+33fbc73890
fabric-models-v0: Fabric Models (v0) 0.3.18+c6af733c90
fabric-networking-api-v1: Fabric Networking API (v1) 1.2.5+c6af733c90
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 4.1.0+06e0e25190
fabric-particles-v1: Fabric Particles (v1) 1.0.11+79adfe0a90
fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.9.26+c6af733c90
fabric-renderer-api-v1: Fabric Renderer API (v1) 1.0.13+12bfe4ea90
fabric-renderer-indigo: Fabric Renderer - Indigo 0.6.15+aeb40ebe90
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.16+12bfe4ea90
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.8+c6af733c90
fabric-rendering-v1: Fabric Rendering (v1) 1.11.0+73145abb90
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.1.0+aae9039d90
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.7.3+3e1ba48e90
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.27+93d8cb8290
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.1+1cc24b1b90
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.0+c4f28df590
fabric-textures-v0: Fabric Textures (v0) 1.0.21+aeb40ebe90
fabric-transfer-api-v1: Fabric Transfer API (v1) 2.1.1+93d8cb8290
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 1.3.1+42d99c3290
fabricloader: Fabric Loader 0.14.10
java: OpenJDK 64-Bit Server VM 17
minecraft: Minecraft 1.19.2
redaggool: Redaggool 1.0.0
Launched Version: Fabric
Backend library: LWJGL version 3.3.1 SNAPSHOT
Backend API: Unknown
Window size: <not initialized>
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages: <disabled>
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
CPU: <unknown>
我的build.gradle:
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property "version", project.version
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
}
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
我的fabric.mod.json:
{
"schemaVersion": 1,
"id": "redaggool",
"version": "${version}",
"name": "Redaggool",
"description": "Redstone Aggregate Tool",
"authors": [
"Potatoelf"
],
"contact": {
"website": "No",
"repo": "No"
},
"license": "All-Rights-Reserved",
"icon": "assets/redaggool/icon.png",
"environment": "*",
"entrypoints": {
"client": [
"top.potatoelf.potatoelf.redaggool.client.RedaggoolClient"
],
"main": [
"top.potatoelf.potatoelf.redaggool.Redaggool"
]
},
"mixins": [
"redaggool.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.10",
"fabric": "*",
"minecraft": "1.19.2"
}
}