Jump to content

SidedProxy cannot be resolved to a type


Delupara

Recommended Posts

Hello! I just started to mod again and this time I have a better PC :D

 

But anyway... I already have an issue... I get the error seen in the title. Here are my files...

 

the reason Im not detailing my error is because I seriously have no idea wether forge changed the sides annotation or im being a dunce again...


All the files

Spoiler

 

Mod.java


package com.eks.dee;

import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import com.eks.dee.CommonProxy;

@Mod(modid = Refs.MODID, version = Refs.VERSION)
	
public class EksDee
{
	@SidedProxy(clientside = Refs.CLIENT_PROXY, serverside = Refs.COMMON_PROXY)
	public CommonProxy proxy;
	
	@EventHandler
	public void init(FMLInitializationEvent event)
	{
	
	}
    
    
}

 

Refs.java


package com.eks.dee;

public class Refs 
{
	public static final String MODID = "examplemod";
    public static final String VERSION = "1.0";
    public static final String CLIENT_PROXY = "com.eks.dee.ClientProxy";
    public static final String COMMON_PROXY = "com.eks.dee.CommonProxy";
}

 

CommonProxy.java


package com.eks.dee;

import net.minecraftforge.fml.common.event.*;

public class CommonProxy 
{
	public void preInit(FMLPreInitializationEvent event){}
	public void init(FMLInitializationEvent event){}
	public void postInit(FMLPostInitializationEvent event){}
	public void serverStarting(FMLServerStartingEvent event){}
	public void serverStopping(FMLServerStoppingEvent event) {}
}

@SidedProxy(clientside = Refs.CLIENT_PROXY, serverside = Refs.COMMON_PROXY)
 

ClientProxy.java


package com.eks.dee;

public class ClientProxy extends CommonProxy 
{

}

 

 

 

 

Edited by Delupara

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

3 hours ago, Jay Avery said:

The annotation is still in the wrong place! Not on your proxy class, on the proxy field in your main class. Like this:


@SidedProxy(..etc)
public CommonProxy proxy;

 

I missread sorry.

edited main post, same issue. same error.

Edited by Delupara

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

3 hours ago, Jay Avery said:

Well, it seems to be in the right place now. What forge version are you using? In my 1.11.2 workspace, the annotation is at net.minecraftforge.fml.common.SidedProxy - can you find it?

yep, I imported the package and eclise "decided it was ok" and now its fixed. thanks

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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