Jump to content

Recommended Posts

Posted

---- Minecraft Crash Report ----

// Ouch. That hurt :(

 

Time: 6/18/14 12:46 PM

Description: Exception in server tick loop

 

java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

at java.lang.Class.getDeclaredMethods(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.gatherAnnotations(FMLModContainer.java:328)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:517)

at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)

at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 31 more

Caused by: java.lang.RuntimeException: Attempted to load class atv for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)

... 33 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_55, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode, sharing), Oracle Corporation

Memory: 61292312 bytes (58 MB) / 133480448 bytes (127 MB) up to 259522560 bytes (247 MB)

JVM Flags: 0 total;

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 121 mods loaded, 121 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.49.965} [Forge Mod Loader] (minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar) Unloaded->Constructed

Forge{9.11.1.965} [Minecraft Forge] (minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar) Unloaded->Constructed

AppliedEnergistics-Core{rv13.c} [AppliedEnergistics Core] (minecraft.jar) Unloaded->Constructed

CodeChickenCore{0.9.0.9} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed

Micdoodlecore{} [Micdoodle8 Core] (minecraft.jar) Unloaded->Constructed

PlayerAPI{1.1} [Player API] (minecraft.jar) Unloaded->Constructed

PowerCrystalsCore{1.1.8} [PowerCrystals Core] (PowerCrystalsCore-1.1.8-9.jar) Unloaded->Constructed

TConstruct-Preloader{0.0.1} [Tinkers Corestruct] (minecraft.jar) Unloaded->Constructed

OpenModsCore{@VERSION@} [OpenModsCore] (minecraft.jar) Unloaded->Constructed

battlegear2{1.0.5.3} [Mine & Blade Battlegear 2 - Bullseye] (1.6.4-MB_Battlegear2-Bullseye-1.0.5.3.jar) Unloaded->Constructed

bspkrsCore{v4.3(1.6.4)} [bspkrsCore] ([1.6.4]bspkrsCorev4.3.zip) Unloaded->Constructed

mod_bspkrsCore{v4.3(1.6.4)} [bspkrsCore] ([1.6.4]bspkrsCorev4.3.zip) Unloaded->Constructed

TreeCapitator{Forge 1.6.4.r02} [Treecapitator] ([1.6.4]TreeCapitator.Forge.1.6.4.r02.Universal.jar) Unloaded->Constructed

cfm{3.2.5} [§4MrCrayfish's Furniture Mod] ([Forge]FurnitureModv3.2.5(1.6.4).zip) Unloaded->Constructed

ccm{1.0.1} [MrCrayfish's Construction Mod] ([Forge]MrCrayfishConstructionModv1.0.5_(1.6.4).zip) Unloaded->Constructed

AppliedEnergistics{rv13.c} [Applied Energistics] (appeng-rv13-c-mc162.jar) Unloaded->Constructed

Autoutils{1.0.1} [Autoutils] (autoutils-1.6.4-1.0.1.jar) Unloaded->Constructed

Backpack{1.28.37} [backpack] (backpack-1.28.37-1.6.x.jar) Unloaded->Constructed

BiblioCraft{1.5.5} [biblioCraft] (BiblioCraft[v1.5.5].zip) Unloaded->Constructed

BuildCraft|Core{4.2.2} [buildCraft] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

BuildCraft|Builders{4.2.2} [bC Builders] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

UniversalElectricity{3.0.0} [universal Electricity] (Universal Electricity Mod.jar) Unloaded->Constructed

BuildCraft|Energy{4.2.2} [bC Energy] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

BuildCraft|Factory{4.2.2} [bC Factory] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

BuildCraft|Transport{4.2.2} [bC Transport] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

BuildCraft|Silicon{4.2.2} [bC Silicon] (buildcraft-A-1.6.4-4.2.2.jar) Unloaded->Constructed

CarpentersBlocks{v1.9.7} [Carpenter's Blocks] (Carpenters_Blocks_v1.9.7_MC_1.6+.zip) Unloaded->Constructed

ChickenChunks{1.3.3.4} [ChickenChunks] (ChickenChunks 1.3.3.4.jar) Unloaded->Constructed

CoFHCore{2.0.0.b8a} [CoFH Core] (CoFHCore-2.0.0.b8a.jar) Unloaded->Constructed

CoFHLoot{2.0.0.b8a} [CoFH Loot] (CoFHCore-2.0.0.b8a.jar) Unloaded->Constructed

CoFHMasquerade{2.0.0.b8a} [CoFH Masquerade] (CoFHCore-2.0.0.b8a.jar) Unloaded->Constructed

CoFHSocial{2.0.0.b8a} [CoFH Social] (CoFHCore-2.0.0.b8a.jar) Unloaded->Constructed

CoFHWorld{2.0.0.b8a} [CoFH World] (CoFHCore-2.0.0.b8a.jar) Unloaded->Constructed

ComputerCraft{1.63} [ComputerCraft] (ComputerCraft1.63.jar) Unloaded->Constructed

ConfigMod{v1.0} [Extended Mod Config] (ConfigMod-for-MC-v1.6.2.zip) Unloaded->Constructed

CoroAI{v1.0} [CoroAI] (CoroAI-for-MC-v1.6.2.zip) Unloaded->Constructed

DragonMounts{r36} [Dragon Mounts] (dragonmount_r36_mc1.6.x.zip) Unloaded->Constructed

MoCreatures{6.1.0} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v6.1.0.zip) Unloaded->Constructed

DynamicLights{1.2.8} [Dynamic Lights] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_onFire{1.0.3} [Dynamic Lights on burning] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_creepers{1.0.3} [Dynamic Lights on Creepers] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_dropItems{1.0.5} [Dynamic Lights on ItemEntities] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_entityClasses{1.0.0} [Dynamic Lights on specified Entities] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_mobEquipment{1.0.3} [Dynamic Lights on Mob Equipment] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_flameArrows{1.0.0} [Dynamic Lights on Flame enchanted Arrows] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_otherPlayers{1.0.5} [Dynamic Lights Other Player Light] (DynamicLights_1.6.4.jar) Unloaded

DynamicLights_thePlayer{1.0.9} [Dynamic Lights Player Light] (DynamicLights_1.6.4.jar) Unloaded

FlansMod{4.1.1} [Flans Mod] (FlansMod-4.1.1.jar) Unloaded

FoodPlus{2.9rS} [Food Plus] (FoodPlus-1.6.4-2.9rS.jar) Unloaded

ThermalExpansion{3.0.0.b8} [Thermal Expansion] (ThermalExpansion-3.0.0.b8.jar) Unloaded

IC2{2.0.357-experimental} [industrialCraft 2] (industrialcraft-2_2.0.357-experimental.jar) Unloaded

MineFactoryReloaded{1.6.4R2.7.9} [MineFactory Reloaded] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatForestryPre{1.6.4R2.7.9} [MFR Compat: Forestry (part 2)] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

Forestry{2.3.1.1} [Forestry for Minecraft] (forestry-A-2.3.1.1.jar) Unloaded

GalacticraftCore{2.0.13} [Galacticraft Core] (Galacticraft-1.6.4-2.0.13.1063.jar) Unloaded

GalacticraftMars{2.0.13} [Galacticraft Mars] (Galacticraft-Planets-1.6.4-2.0.13.1063.jar) Unloaded

hamstermod{0.1} [Hamster Mod] (Hamsterrific[1.6.4]V2.1.zip) Unloaded

Hats{2.1.8} [Hats] (Hats2.1.8.zip) Unloaded

inventorytweaks{1.56} [inventory Tweaks] (InventoryTweaks-MC1.6.2-1.56-b77.jar) Unloaded

IronChest{5.4.1.649} [iron Chest] (ironchest-universal-1.6.4-5.4.1.649.zip) Unloaded

jammyfurniture{4.5} [Jammy Furniture Mod] (Jammy Furniture Mod 1.6.4.zip) Unloaded

mcheli{0.8.1} [MC Helicopter] (mcheli) Unloaded

Mekanism{6.0.5} [Mekanism] (Mekanism-6.0.5.46.jar) Unloaded

MekanismGenerators{6.0.5} [MekanismGenerators] (MekanismGenerators-6.0.5.46.jar) Unloaded

MekanismTools{6.0.5} [MekanismTools] (MekanismTools-6.0.5.46.jar) Unloaded

MFR Compat Forestry Trees{1.0} [MFR Compat Forestry Trees] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MFR Compat Extra Trees{1.0} [MFR Compat Extra Trees] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatAppliedEnergistics{1.6.4R2.7.9} [MFR Compat: Applied Energistics] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatAtum{1.6.4R2.7.9} [MFR Compat: Atum] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatBackTools{1.6.4R2.7.9} [MFR Compat: BackTools] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatBuildCraft{1.6.4R2.7.9} [MFR Compat: BuildCraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatChococraft{1.6.4R2.7.9} [MFR Compat: Chococraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatExtraBiomes{1.6.4R2.7.9} [MFR Compat: ExtraBiomes] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatForestry{1.6.4R2.7.9} [MFR Compat: Forestry] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatForgeMicroblock{1.6.4R2.7.9} [MFR Compat: ForgeMicroblock] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatIC2{1.6.4R2.7.9} [MFR Compat: IC2] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

Mystcraft{0.10.12.00} [Mystcraft] (mystcraft-uni-1.6.4-0.10.12.00.zip) Unloaded

MineFactoryReloaded|CompatMystcraft{1.6.4R2.7.9} [MFR Compat: Mystcraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatPams{1.6.4R2.7.9} [MFR Compat: Pam's Mods] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

ProjRed|Core{4.0.2.6} [Project: Red-Core] (ProjectRedBase-1.6.4-4.0.2.6.jar) Unloaded

ProjRed|Exploration{4.0.2.6} [ProjectRed-Exploration] (ProjectRedWorld-1.6.4-4.0.2.6.jar) Unloaded

MineFactoryReloaded|CompatProjRed{1.6.4R2.7.9} [MFR Compat ProjectRed] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatRailcraft{1.6.4R2.7.9} [MFR Compat: Railcraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatRP2{1.6.4R2.7.9} [MFR Compat: RP2] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatSufficientBiomes{1.6.4R2.7.9} [MFR Compat: Sufficient Biomes] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

Thaumcraft{4.1.0} [Thaumcraft] (Thaumcraft4.1.0.zip) Unloaded

MineFactoryReloaded|CompatThaumcraft{1.6.4R2.7.9} [MFR Compat: Thaumcraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatThermalExpansion{1.6.4R2.7.9} [MFR Compat: Thermal Expansion] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatTwilightForest{1.6.4R2.7.9} [MFR Compat: TwilightForest] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatVanilla{1.6.4R2.7.9} [MFR Compat: Vanilla] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

MineFactoryReloaded|CompatXyCraft{1.6.4R2.7.9} [MFR Compat: XyCraft] (MineFactoryReloaded-2.7.9-final.jar) Unloaded

numina{0.1.0-45} [Numina] (Numina-1.6.2-0.1.0-45.jar) Unloaded

powersuits{0.10.0-91} [MachineMuse's Modular Powersuits] (ModularPowersuits-1.6.4-0.10.0-91.jar) Unloaded

Morph{0.7.1} [Morph] (Morph-Beta-0.7.1.zip) Unloaded

Natura{2.1.14} [Natura] (natura_mc1.6.X_2.1.14.jar) Unloaded

OpenMods{0.5} [OpenMods] (OpenModsLib-0.5.jar) Unloaded

OpenBlocks{1.2.8} [OpenBlocks] (OpenBlocks-1.2.8.jar) Unloaded

PartyMod{Beta-V1.2} [Party Mod] (PartyMod-Beta-V1.2.zip) Unloaded

iChunUtil{2.4.0} [iChunUtil] (util^iChunUtil2.4.0.zip) Unloaded

PortalGun{2.0.2} [PortalGun] (PortalGun2.0.2.zip) Unloaded

TConstruct{1.6.X_1.5.5.7} [Tinkers' Construct] (TConstruct_mc1.6.4_1.5.5.7.jar) Unloaded

ProjRed|Compatability{4.0.2.6} [ProjectRed-Compatability] (ProjectRedCompat-1.6.4-4.0.2.6.jar) Unloaded

ProjRed|Integration{4.0.2.6} [ProjectRed-Integration] (ProjectRedIntegration-1.6.4-4.0.2.6.jar) Unloaded

ProjRed|Transmission{4.0.2.6} [ProjectRed-Transmission] (ProjectRedIntegration-1.6.4-4.0.2.6.jar) Unloaded

ProjRed|Illumination{4.0.2.6} [ProjectRed-Illumination] (ProjectRedWorld-1.6.4-4.0.2.6.jar) Unloaded

secretroomsmod{4.6.2} [The SecretRoomsMod] (SecretRoomsMod-universal-1.6.4-4.6.2.324.jar) Unloaded

awger_SmallBoat{0.10.6} [smallBoat] (smallboats.0.10.6.jar) Unloaded

awger_Punt{0.10.6} [Punt] (smallboats.0.10.6.jar) Unloaded

awger_Whitehall{0.10.6} [Whitehall] (smallboats.0.10.6.jar) Unloaded

awger_Hoy{0.10.6} [Hoy] (smallboats.0.10.6.jar) Unloaded

mod_SmartMoving{Not available} [mod_SmartMoving] (Smart_Moving_Universal_for_Forge.zip) Unloaded

mod_SmartRender{Not available} [mod_SmartRender] (Smart_Moving_Universal_for_Forge.zip) Unloaded

telepads{1.6.4 v5} [Teleportation Pads] (TelePads 1.6.4 v5.zip) Unloaded

AS_UpdateCheck{1.1.4} [AtomicStryker Update Check Mod] (UpdateCheckerMod_1.6.4.zip) Unloaded

weaponmod{1.6.2 v1.13.6} [balkon's WeaponMod] (WeaponMod.zip) Unloaded

WebDisplay{0.7} [Web Displays] (WebDisplays.zip) Unloaded

witchery{0.18.4} [Witchery] (witchery-1.6.4-0.18.4.zip) Unloaded

McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml,forge'

Type: Dedicated Server (map_server.txt)

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

    • https://mclo.gs/9y5ciD2 anyone ever had this issue?  Internal exception illegal argument exception: unable to fit 3194354 into 3
    • Hoffman Law Recovery helped me recovered my lost funds
    • Hi! I'm trying to add my custom models/textures renderer like this: public class PonyPlayerWrapperRenderer extends EntityRenderer<Player> { // wrapper class under my LivingEntityRenderer class implementation private final PonyPlayerRenderer innerRenderer; private final PonyPlayerRenderer innerSlimRenderer; public PonyPlayerWrapperRenderer(final EntityRendererProvider.Context context) { super(context); System.out.println("creating new PonyPlayerWrapperRenderer"); this.innerRenderer = new PonyPlayerRenderer(context, false); this.innerSlimRenderer = new PonyPlayerRenderer(context, true); } @Override public void render(final Player entity, final float yaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource bufferSource, final int packedLight) { System.out.println("PonyPlayerWrapperRenderer render: " + entity.toString()); if (entity instanceof AbstractClientPlayer clientPlayer) { if (clientPlayer.getModelName().contains("slim")) { innerSlimRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } else { innerRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } } } @Override public ResourceLocation getTextureLocation(final Player player) { System.out.println("PonyPlayerWrapperRenderer getTextureLocation"); if (player instanceof AbstractClientPlayer clientPlayer) { return clientPlayer.getSkinTextureLocation(); } System.out.println("player instanceof AbstractClientPlayer is false"); return getDefaultSkin(player.getUUID()); } } public class PonyPlayerRenderer extends LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> { private final PlayerModel<AbstractClientPlayer> earthModel; private final PlayerModel<AbstractClientPlayer> pegasusModel; private final PlayerModel<AbstractClientPlayer> unicornModel; public PonyPlayerRenderer(final EntityRendererProvider.Context context, final boolean slim) { super( context, slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)), 0.5f ); System.out.println("creating new PonyPlayerRenderer"); this.earthModel = slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); this.pegasusModel = new PegasusModel(context.bakeLayer(PegasusModel.LAYER_LOCATION)); this.unicornModel = new UnicornModel(context.bakeLayer(UnicornModel.LAYER_LOCATION)); } @Override public void render(final AbstractClientPlayer player, final float entityYaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource buffer, final int packedLight) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); this.model = switch (race) { case PEGASUS -> pegasusModel; case UNICORN -> unicornModel; case EARTH -> earthModel; }; super.render(player, entityYaw, partialTicks, poseStack, buffer, packedLight); } @Override public ResourceLocation getTextureLocation(final AbstractClientPlayer player) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); return switch (race) { case EARTH -> fromNamespaceAndPath(MODID, "textures/entity/earth_pony.png"); case PEGASUS -> fromNamespaceAndPath(MODID, "textures/entity/pegasus.png"); case UNICORN -> fromNamespaceAndPath(MODID, "textures/entity/unicorn.png"); }; } } @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { // mod bus render registration config @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onRegisterRenderers(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, PonyPlayerWrapperRenderer::new); System.out.println("onRegisterRenderers end"); } } Method onRegisterRenderers() is called and I can see it being logged. But when I enter the world, my PonyWrapperRenderer render() method doesn't ever seem to be called. I also tried to put my renderer to EntityRenderDispatcher's playerRenderers via reflection: @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onClientSetup(final FMLClientSetupEvent event) { event.enqueueWork(() -> { try { final EntityRenderDispatcher dispatcher = Minecraft.getInstance().getEntityRenderDispatcher(); final Field renderersField = getEntityRenderDispatcherField("playerRenderers"); final Field itemInHandRenderer = getEntityRenderDispatcherField("itemInHandRenderer"); @SuppressWarnings("unchecked") final Map<String, EntityRenderer<? extends Player>> playerRenderers = (Map<String, EntityRenderer<? extends Player>>)renderersField.get(dispatcher); final PonyPlayerWrapperRenderer renderer = new PonyPlayerWrapperRenderer( new EntityRendererProvider.Context( dispatcher, Minecraft.getInstance().getItemRenderer(), Minecraft.getInstance().getBlockRenderer(), (ItemInHandRenderer)itemInHandRenderer.get(dispatcher), Minecraft.getInstance().getResourceManager(), Minecraft.getInstance().getEntityModels(), Minecraft.getInstance().font ) ); playerRenderers.put("default", renderer); playerRenderers.put("slim", renderer); System.out.println("Player renderers replaced"); } catch (final Exception e) { throw new RuntimeException("Failed to replace player renderers", e); } }); } private static Field getEntityRenderDispatcherField(final String fieldName) throws NoSuchFieldException { final Field field = EntityRenderDispatcher.class.getDeclaredField(fieldName); field.setAccessible(true); return field; } } But I receive the error before Minecraft Client appears (RuntimeException: Failed to replace player renderers - from ClientRenderers onClientSetup() method - and its cause below): java.lang.IllegalArgumentException: No model for layer anotherlittlepony:earth_pony#main at net.minecraft.client.model.geom.EntityModelSet.bakeLayer(EntityModelSet.java:18) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererProvider$Context.bakeLayer(EntityRendererProvider.java:69) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerRenderer.<init>(PonyPlayerRenderer.java:32) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerWrapperRenderer.<init>(PonyPlayerWrapperRenderer.java:24) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.ClientRenderers.lambda$onClientSetup$0(ClientRenderers.java:79) ~[main/:?] {re:classloading} ... 33 more Problem appears when EntityRendererProvider context tries to bakeLayer with my model layer location: new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); // PonyPlayerRenderer.java:32 public class PonyModel extends PlayerModel<AbstractClientPlayer> { // the model class itself public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation( ResourceLocation.fromNamespaceAndPath(MODID, "earth_pony"), "main" ); public PonyModel(final ModelPart root) { super(root, false); } public static LayerDefinition createBodyLayer() { // some CubeListBuilder stuff for model appearance } } Textures PNGs are placed at: resources/assets/[my mod id]/textures/entity. My forge version is 1.20.1. Would appreciate any help.
    • Well, a bit more information about what you're trying to do would be helpful. e.g. why you're trying to use "INVOKE_ASSIGN" instead of "INVOKE". "INVOKE_ASSIGN" calls your code after the "target" is called and its value is stored, if applicable. "INVOKE" calls your code before the target is called. "target" expects a fully qualified name, as per the SpongePowered docs, if that name is going to be remapped (which it will be if your injecting into Minecraft itself and not another mod). For more information on fully qualified names versus canonical names, see the Java specifications. Here's an example of a working "@At" from my own code that targets the "getClosestsVulnerablePlayerToEntity" call inside a mob's logic: @At(value = "INVOKE_ASSIGN", target = "net.minecraft.world.World.getClosestVulnerablePlayerToEntity(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/EntityPlayer;") Hope this helps!
    • Ran it one more time just to check, and there's no errors this time on the log??? Log : https://mclo.gs/LnuaAiu I tried allocating more memory to the modpack, around 8000MB and it's still the same; stopping at "LOAD_REGISTRIES". Are some of the mods clashing, maybe? I have no clue what to do LOL
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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