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.

Peppy8651

Members
  • Joined

  • Last visited

  1. Thank you so much! I don't know how but I could not find the method canApplyTogether using Eclipse (That square thing that pops up when you type something and shows you classes and methods) but I guess it does exist because I was able to override it and it worked.
  2. Peppy8651 changed their profile photo
  3. Let's say that I have two custom enchantments for the same item. I made a custom ItemSword that let's you shoot fireballs when you right click, and I made two enchantments that modify that fireball. What I want is to make these two enchantments incompatible with each other. An example would be me putting one enchantment on my sword. Then, when I go on an anvil, I would not be able to apply the other enchantment unless the first enchantment was gone. I would also like this to work vice versa. My enchantments both extend Enchantment. I tried overriding Enchantment#isCompatibleWith() but it's a final method. Therefore, how would I be able to make two custom enchantments incompatible with each other?

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.