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

My modname_at.cfg works fine in the development environment, and it works when I run my mod in Eclipse, but when I build my mod and load it in the actual Minecraft client, it crashes due to a field  not being public:

 

java.lang.IllegalAccessError: tried to access field net.minecraft.world.WorldServer.field_73068_P from class lotr.common.LOTRTickHandlerServer

 

(This field is one of those made public in my modname_at.cfg, WorldServer.allPlayersSleeping)

 

Since this always seemed to work fine in 1.6, could anyone tell me if the method of doing this has changed somehow in 1.7, or what I am doing wrong and how I can fix it? Thank you.

 

This is my full access transformer file:

 

public net.minecraft.entity.player.EntityPlayer * 
public net.minecraft.entity.player.EntityPlayer *()
public net.minecraft.entity.player.EntityPlayerMP * 
public net.minecraft.entity.player.EntityPlayerMP *()
public net.minecraft.client.entity.EntityClientPlayerMP * 
public net.minecraft.client.entity.EntityClientPlayerMP *()
public net.minecraft.client.entity.EntityOtherPlayerMP * 
public net.minecraft.client.entity.EntityOtherPlayerMP *()

public net.minecraft.block.BlockCrops *()
public net.minecraft.block.BlockCarrot *()
public net.minecraft.block.BlockPotato *()

public net.minecraft.world.WorldServer *

public net.minecraft.client.renderer.entity.RenderPlayer *

public net.minecraft.potion.Potion *

public net.minecraft.entity.passive.EntityHorse *

public net.minecraft.inventory.InventoryCrafting *

public net.minecraft.block.BlockStem *

  • Author

So I have to use IFMLLoadingPlugin? Okay then, I was not aware that those things had to be used for changing the visibility of fields and methods, because it worked fine before without them. And I made everything public because I haven't been able to find the srg names yet in the new gradle system.

 

Edit: Reflection is not an option for me, because the mod has to access things every tick, so there would probably be too much performance penalty.

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.