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.

stellarfirefly

Members
  • Joined

  • Last visited

Everything posted by stellarfirefly

  1. Are events such as EnteringChunk documented somewhere? They don't seem to have been added to the wiki yet. Just wondering if it's documented elsewhere or if I'll have to browse source to get info on it.
  2. Update: It was a simple explanation. My production environment is two weeks old. Not a very long time, but long enough that it means it is using Forge 6.0.1 and Minecraft 1.4.2. It seems changes were made (for the better) so that this code works just fine... in 6.3.0. >_> Thanks again for the advice!
  3. Okay, this is interesting. I gave it a try and it seems to work just fine within my development environment. But pushing it out to production, I keep getting an error that the event.entity field does not exist. I crawled around the code some, and it seems like event.entityLiving is also a viable option. But just like before, using that works just fine when running and testing it in Eclipse, but once I zip it up and drop it onto the production server, crash and burn: "[sEVERE] [Minecraft] Encountered an unexpected exception NoSuchFieldError / java.lang.NoSuchFieldError: entityLiving" Any ideas?
  4. I'm intercepting the entityDeath (correction, the LivingDeathEvent) event and I want to retrieve the "death message" if it is a player. The only data passed to this handler is a DamageSource object (event.source). The death message itself may be retrieved with event.source.getDeathMessage(), but that method wants to be passed an EntityPlayer object. So then two questions: 1. How can I determine within this event handler if it triggered upon a player death? Because it seems to also trigger on animal and monster deaths. 2. Where exactly do I find the proper EntityPlayer to pass to getDeathMessage()? My guess for #2 is that it is the EntityPlayer for the player in question, but the only object passed to this handler is the damage source. So I'm guessing that if someone can tell me how to figure out the "damage target" then that will answer both of these questions. adv(thanks)ance

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.