Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

 

  • Author
3 hours ago, Jay Avery said:

@SidedProxy doesn't go on your main mod class, it goes on your proxy field itself.

im high as sh*t thanks....

 

EDIT: still doesn't work.

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

 

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;

 

  • Author
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

 

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?

  • Author
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

 

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.