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.

Arlyh

Members
  • Joined

  • Last visited

  1. I was able to come up with a solution to my issue, and I would like to make my solution visible to this community. It is as follows: Keepcalm, I did end up going a different direction, but I do appreciate your advice and example code. It is always helpful to see how other programmers are accomplishing similar problems.
  2. Edited, thank you.
  3. Hello, I'm attempting to rewrite a minecraftforge method in net.minecraft.block.Block, boolean removeBlockByPlayer(World, EntityPlayer, Int, Int, Int) I start by first removing the original method with a ClassVisitor and an overloaded visitMethod that returns null. I then try to use a MethodVisitor to rewrite the bytecode. Unfortunately, it seems to be rewriting the net.minecraft.block.Block constructor rather than the intended function, though I have determined that removeBlockByPlayer is indeed deleted by iterating through the ClassNode.methods list. My code is as follows: FML output is as follows: I apologize for any silly mistakes I may have made. I primarily code in C/C++ and have only recently taken an interest in Minecraft modding.

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.