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.

zynfinite

Members
  • Joined

  • Last visited

  1. Well first of all, I do use Ctrl-Space whenever I code. I also assume that you did not get what I meant. The error is in the Enumhelper and not the chain of Enumhelper, and Enumhelper is giving an error because it doesn't know what Enumhelper is and what class, and I found a forum thread in the internet which the person who solve the problem gave the import code: import net.minecraftforge.common.EnumHelper; The chain code of Enumhelper is in the correct state. P.S I did use the Ctrl+Shift+O hotkey to automatically add imports(but it added no imports regarding Enumhelper).
  2. There's no automatic code completion when I hover on the Enumhelper. It only recommends me to create a new class. I'm trying to find the Enumhelper class on the source file.
  3. Hi everyone! This is the first time I am trying to make a mod, so forgive me if I'm acting dumb. I'm trying to create a custom sword, and I used this code to create the material for the sword: public static final Item.ToolMaterial TESTMATERIAL = EnumHelper.addToolMaterial("TESTMATERIAL", 2, 192, 5.0F, 1.5F, 12); but it gave me an error saying that Enumhelper cannot be resolved. I already tried importing Enumhelper on the class but the import also gave me an error, I added this import code: import net.minecraftforge.common.EnumHelper; It also gave me a cannot be resolved error. The version of minecraft that I'm trying to mod is version 1.7.2 using forge-1.7.2-10.12.1.1060 version of forge. Can anybody help? Thanks.

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.