Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] Issue and Confusion on capability provider


AnZaNaMa
 Share

Recommended Posts

Hello, I'm working on implementing a capability for living entities for a mod I'm working on and I've run into some trouble. I believe I've gotten most of it right, from what I've gathered from other threads here.

 

The trouble I'm running into is when the AttachCapabilitiesEvent<Entity> I'm hooking into fires. When that event fires, I'm calling event.addCapability(), and the game crashes while it's attempting to create the new instance of my capability provider (ICapabilitySerializable), throwing a null pointer exception.

 

Here, you can see my event listener for the AttachCapabilitiesEvent<Entity>, as well as the registration for my capability:

@SubscribeEvent
public static void onCommonSetup(FMLCommonSetupEvent event) {
    CapabilityManager.INSTANCE.register(ILifeForce.class, new LifeForceStorage(), LifeForce::new);
}

@SubscribeEvent
public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
    if(event.getObject() instanceof LivingEntity) {
        event.addCapability(new ResourceLocation(LifePower.MODID, "lifeforce"), new LifeForceProvider());
        event.getObject().getCapability(LifeForceProvider.LIFE_FORCE_CAP).ifPresent((capability) -> {
            capability.set(Math.round(((LivingEntity) event.getObject()).getHealth()));
        });
    }
}

 

Here's the gist of the crash report:

Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
	at com.networkoverflow.lifepower.content.capabilities.LifeForceProvider.<init>(LifeForceProvider.java:14) ~[classes/:?] {pl:capability_inject_definalize:A}
	at com.networkoverflow.lifepower.content.capabilities.CapabilityHandler.onAttachCapabilities(CapabilityHandler.java:25) ~[classes/:?] {}
	at net.minecraftforge.eventbus.ASMEventHandler_0_CapabilityHandler_onAttachCapabilities_AttachCapabilitiesEvent.invoke(.dynamic) ~[?:?] {}

(Full Crash Report)

 

Here is my LifeForceProvider.java (with line 14, the crash line, marked):

package com.networkoverflow.lifepower.content.capabilities;

import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.common.util.LazyOptional;

public class LifeForceProvider implements ICapabilitySerializable<INBT> {
    @CapabilityInject(ILifeForce.class)
    public static final Capability<ILifeForce> LIFE_FORCE_CAP = null;

    private LazyOptional<ILifeForce> instance = LazyOptional.of(LIFE_FORCE_CAP::getDefaultInstance); //THIS IS WHAT CRASHES <-----

    @Override
    public <T> LazyOptional<T> getCapability(Capability<T> capability, Direction direction) {
        return capability == LIFE_FORCE_CAP ? instance.cast() : LazyOptional.empty();
    }

    @Override
    public INBT serializeNBT() {
        return LIFE_FORCE_CAP.getStorage().writeNBT(LIFE_FORCE_CAP, this.instance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null);
    }

    @Override
    public void deserializeNBT(INBT nbt) {
        LIFE_FORCE_CAP.getStorage().readNBT(LIFE_FORCE_CAP, this.instance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null, nbt);
    }
}

 

So, as you can see, the LazyOptional.of() that I'm calling is raising a NullPointerException, which I think refers to LIFE_FORCE_CAP being null. However, I thought that because that variable has the @CapabilityInject annotation, its null value would be replaced with whatever forge generates.

 

One reason I could think of for this happening is if I'm hooking into the wrong place to register my capability. In this thread, @Animefan8888 mentioned that the call to CapabilityManager.INSTANCE.register() should happen in the FMLCommonSetupEvent. Is this the wrong place to register my capability, or am I doing something else wrong?

 

All code related to this capability

Edited by AnZaNaMa

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

You have told it to call a method called "getDefaultInstance" but this method does not exist anywhere I can find.

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

LIFE_FORCE_CAP is a Capability<ILifeForce>, so the call to LIFE_FORCE_CAP::getDefaultInstance will resolve to Capability::getDefaultInstance which does exist. I was under the impression that getDefultInstance would return the instance of LifeForce that I passed into CapabilityManager.INSTANCE.register()

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

Your capability registered object and the capability data are not the same thing.

For example, this:

https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/entities/capabilities/MilkStorage.java#L28-L33

Returns a new instance of the class that holds the capability data.

 

My capability attach event:

https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/FarmingEventHandler.java#L761

 

(Note: that is 1.12 code and there have been changes, but it should at least work as a template to understand what's going on)

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

I managed to figure it out. I had my @EventBusSubscriber wrong (had to subscribe to the client-specific bus for the FMLCommonSetupEvent). Because of that, the event handler wasn't firing, so the instance of the capability was never being injected with a value, so it was still null when I tried to use it.

 

@Draco18s also, you were right. I was just passing an instance of my ILifeForce, when I needed to pass it a supplier. I ended up using a lambda supplier:

@SubscribeEvent
public static void onCommonSetupEvent(FMLCommonSetupEvent event) {
    CapabilityManager.INSTANCE.register(ILifeForce.class, new LifeForceStorage(), () -> new LifeForce());
}

 

  • Like 1

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • If someone need i can post the log  [22:00:59] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker [22:00:59] [main/INFO]: Using primary tweak class name optifine.OptiFineTweaker [22:00:59] [main/INFO]: Calling tweak class optifine.OptiFineTweaker [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: acceptOptions [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: injectIntoClassLoader [22:00:59] [main/INFO]: [OptiFine] OptiFine ClassTransformer [22:00:59] [main/INFO]: [OptiFine] OptiFine ZIP file: C:\Users\gabbo\AppData\Roaming\.minecraft\libraries\optifine\OptiFine\1.18.2_HD_U_H7\OptiFine-1.18.2_HD_U_H7.jar [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: getLaunchArguments [22:00:59] [main/INFO]: [OptiFine] OptiFineTweaker: getLaunchTarget [22:00:59] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.eventbus.api.Event$Result [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeEntity [22:01:00] [main/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.logging.CrashReportExtender [22:01:01] [main/INFO]: [OptiFine] (Reflector) Method not present: aid.create [22:01:03] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.ForgeHooksClient [22:01:04] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [22:01:05] [Render thread/INFO]: Setting user: Ciube8Bit [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.settings.KeyConflictContext [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.getKeyModifier [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.settings.KeyModifier [22:01:05] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 build 10 [22:01:05] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.fml.loading.progress.EarlyProgressVisualization.handOffWindow [22:01:06] [Render thread/INFO]: [OptiFine]  [22:01:06] [Render thread/INFO]: [OptiFine] OptiFine_1.18.2_HD_U_H7 [22:01:06] [Render thread/INFO]: [OptiFine] Build: 20220410-185216 [22:01:06] [Render thread/INFO]: [OptiFine] OS: Windows 10 (amd64) version 10.0 [22:01:06] [Render thread/INFO]: [OptiFine] Java: 17.0.1, Microsoft [22:01:06] [Render thread/INFO]: [OptiFine] VM: OpenJDK 64-Bit Server VM (mixed mode), Microsoft [22:01:06] [Render thread/INFO]: [OptiFine] LWJGL: 3.3.0 Win32 WGL EGL OSMesa VisualC DLL [22:01:06] [Render thread/INFO]: [OptiFine] OpenGL: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2, version 3.2.0 NVIDIA 511.79, NVIDIA Corporation [22:01:06] [Render thread/INFO]: [OptiFine] OpenGL Version: 3.2.0 [22:01:06] [Render thread/INFO]: [OptiFine] Maximum texture size: 32768x32768 [22:01:06] [VersionCheck/INFO]: [OptiFine] Checking for new version [22:01:06] [Render thread/INFO]: [Shaders] OpenGL Version: 3.2.0 NVIDIA 511.79 [22:01:06] [Render thread/INFO]: [Shaders] Vendor:  NVIDIA Corporation [22:01:06] [Render thread/INFO]: [Shaders] Renderer: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 [22:01:06] [Render thread/INFO]: [Shaders] Capabilities:  2.0  2.1  3.0  3.2  -  [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_DRAW_BUFFERS: 8 [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_COLOR_ATTACHMENTS: 8 [22:01:06] [Render thread/INFO]: [Shaders] GL_MAX_TEXTURE_IMAGE_UNITS: 32 [22:01:06] [Render thread/INFO]: [Shaders] Load shaders configuration. [22:01:06] [Render thread/INFO]: [Shaders] No shaderpack loaded. [22:01:06] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModList [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\boss-bars-e1170-default.zip' [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\boss-bars-e1170.zip' [22:01:06] [Render thread/WARN]: Couldn't get pack info for: afc: 'pack.mcmeta' in ResourcePack 'C:\Users\gabbo\AppData\Roaming\.minecraft\resourcepacks\Colourful Containers v0.3 - 1.15.zip' [22:01:06] [Render thread/WARN]: Removed resource pack lunar from options because it doesn't seem to exist anymore [22:01:06] [VersionCheck/INFO]: [OptiFine] Version found: H6 [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: sun.misc.SharedSecrets [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: jdk.internal.misc.SharedSecrets [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.ClassNotFoundException: sun.misc.VM [22:01:06] [Render thread/WARN]: [OptiFine] (Reflector) java.lang.reflect.InaccessibleObjectException: Unable to make public static long jdk.internal.misc.VM.maxDirectMemory() accessible: module java.base does not "exports jdk.internal.misc" to unnamed module @4fe7962 [22:01:06] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.ItemModelMesherForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.pipeline.ForgeBlockModelRenderer [22:01:07] [Render thread/INFO]: Narrator library for x64 successfully loaded [22:01:07] [Render thread/INFO]: Reloading ResourceManager: Default [22:01:07] [Render thread/INFO]: [OptiFine] *** Reloading textures *** [22:01:07] [Render thread/INFO]: [OptiFine] Resource packs: Default [22:01:07] [Worker-Main-22/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.ModelLoaderRegistry [22:01:07] [Worker-Main-19/INFO]: [OptiFine] Multitexture: false [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.gui.ModListScreen [22:01:07] [Worker-Main-16/INFO]: [OptiFine] Multitexture: false [22:01:07] [Worker-Main-15/INFO]: [OptiFine] Multitexture: false [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.gui.NotificationModUpdateScreen [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqn.canRenderInLayer [22:01:07] [Render thread/INFO]: [OptiFine] *** Reflector Forge *** [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: mods.betterfoliage.client.BetterFoliageClient [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.internal.BrandingControl [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.capabilities.ICapabilityProvider [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.capabilities.CapabilityProvider [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.loading.ClientModLoader [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkDataEvent$Save [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkEvent$Load [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.ChunkEvent$Unload [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityRenderersEvent$AddLayers [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.EntityLeaveWorldEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$CameraSetup [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$FogColors [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.EntityViewRenderEvent$RenderFogEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.EntityJoinWorldEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.eventbus.api.Event.isCanceled [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.eventbus.api.Event.getResult [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.eventbus.api.IEventBus [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eri.getTexture [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getLightEmission [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getSoundType [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.getStateAtViewpoint [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.common.extensions.IForgeBlockState.shouldDisplayFluidOverlay [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeFluid [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fluids.FluidAttributes [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Field not present: adi.currentlyLoading [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.ForgeEventFactory [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeHooks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfig [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfig$Client [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfigSpec [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeConfigSpec$ConfigValue [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: cqq.getWorldForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeItem [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeItemStack [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.ForgeI18n [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.setKeyConflictContext [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: dyo.setKeyModifierAndCode [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.registries.ForgeRegistryEntry [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqn.canRenderInLayer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Constructor not present: aea, params: class aeb, int, class java.lang.Object, boolean [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: aea.isForceTicks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.extensions.IForgeBlockEntity [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getCloudRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getSkyRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getWeatherParticleRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: eqh.getWeatherRenderHandler [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.model.pipeline.LightUtil [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.common.MinecraftForge [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.MinecraftForgeClient [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModContainer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.fml.ModLoader [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.entity.PartEntity [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.entity.PlaySoundAtEntityEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RegisterShadersEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderBlockOverlayEvent$OverlayType [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderGameOverlayEvent$BossInfo [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderItemInFrameEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderLivingEvent$Pre [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderLivingEvent$Post [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.RenderNameplateEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.client.RenderProperties.getEffectRenderer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: net.minecraftforge.client.RenderProperties.getEffectRenderer [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.client.event.ScreenshotEvent [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.server.ServerLifecycleHooks [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Method not present: epj.updateSprite [22:01:07] [Render thread/INFO]: [OptiFine] (Reflector) Class not present: net.minecraftforge.event.world.WorldEvent$Load [22:01:07] [Render thread/INFO]: [OptiFine] *** Reflector Vanilla *** [22:01:10] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/00_glass_white/glass_pane_white.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/00_glass_white/glass_white.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/01_glass_orange/glass_orange.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/01_glass_orange/glass_pane_orange.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/02_glass_magenta/glass_magenta.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/02_glass_magenta/glass_pane_magenta.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/03_glass_light_blue/glass_light_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/03_glass_light_blue/glass_pane_light_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/04_glass_yellow/glass_pane_yellow.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/04_glass_yellow/glass_yellow.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/05_glass_lime/glass_lime.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/05_glass_lime/glass_pane_lime.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/06_glass_pink/glass_pane_pink.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/06_glass_pink/glass_pink.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/07_glass_gray/glass_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/07_glass_gray/glass_pane_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/08_glass_light_gray/glass_light_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/08_glass_light_gray/glass_pane_light_gray.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/09_glass_cyan/glass_cyan.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/09_glass_cyan/glass_pane_cyan.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/10_glass_purple/glass_pane_purple.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/10_glass_purple/glass_purple.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/11_glass_blue/glass_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/11_glass_blue/glass_pane_blue.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/12_glass_brown/glass_brown.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/12_glass_brown/glass_pane_brown.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/13_glass_green/glass_green.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/13_glass_green/glass_pane_green.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/14_glass_red/glass_pane_red.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/14_glass_red/glass_red.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/15_glass_black/glass_black.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/15_glass_black/glass_pane_black.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/20_glass/glass.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/20_glass/glass_pane.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/21_tinted_glass/tinted_glass.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/30_bookshelf/bookshelf.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/40_sandstone/sandstone.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] ConnectedTextures: optifine/ctm/default/41_red_sandstone/red_sandstone.properties [22:01:10] [Worker-Main-22/INFO]: [OptiFine] Multipass connected textures: false [22:01:10] [Worker-Main-22/INFO]: [OptiFine] BetterGrass: Parsing default configuration optifine/bettergrass.properties [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Worker-Main-22/INFO]: [OptiFine] Multitexture: false [22:01:11] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Headphone (Realtek(R) Audio) [22:01:11] [Render thread/INFO]: Sound engine started [22:01:11] [Render thread/INFO]: Created: 1024x1024x3 minecraft:textures/atlas/blocks.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 45 [22:01:11] [Render thread/INFO]: Created: 256x128x3 minecraft:textures/atlas/signs.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x512x3 minecraft:textures/atlas/banner_patterns.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x512x3 minecraft:textures/atlas/shield_patterns.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 256x256x3 minecraft:textures/atlas/chest.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x256x3 minecraft:textures/atlas/beds.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:11] [Render thread/INFO]: Created: 512x256x3 minecraft:textures/atlas/shulker_boxes.png-atlas [22:01:11] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 1 [22:01:13] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [22:01:13] [Render thread/INFO]: [OptiFine] Animated sprites: 0 [22:01:13] [Render thread/INFO]: [OptiFine] *** Reloading custom textures *** [22:01:14] [Render thread/INFO]: [OptiFine] Disable Forge light pipeline  
    • Hi, I have a problem because when i start minecraft with forge 40.1.20 the game don't open. Someone help?  
    • update to the latest version of Forge, also 1.16.5 requires java 8
    • one of your mods requires GeckoLib, unfortunately is this mod not declared its dependencies correctly to Forge, so Forge can not show you a warning. If you find out which Mod requires GeckoLib report this issue to the Mod author
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.