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.

FlinnX

Members
  • Joined

  • Last visited

  1. I'm new with modding and I wanted to create a Item. Now, this is my Item Class ItemObsidianingot package items; import com.FlinnX.MoreMaterials.Reference; import net.minecraft.item.Item; public class ItemObsidianingot extends Item { public ItemObsidianingot() { setUnlocalizedName(Reference.MoreMaterialsItems.OBSIDIANINGOT.getUnlocalizedName()); setRegistryName(Reference.MoreMaterialsItems.OBSIDIANINGOT.getRegistryName()); } } And this is my References Class package com.FlinnX.MoreMaterials; public class Reference { //Fundemental Mod Variables public static final String MOD_ID = "fmm"; //ID of the Mod: FlinnxMOreMAterials public static final String NAME = "More Materials Mod"; //The Name public static final String VERSION = "0.1-alpha"; //The Version of the Mod public static final String ACCEPTED_VERSIONS = "[1.11.2]"; //The Version it will be playable on public static final String CLIENT_PROXY_CLASS = "com.FlinnX.MoreMaterials.proxy.ClientProxy"; //Client Proxy Location public static final String SERVER_PROXY_CLASS = "com.FlinnX.MoreMaterials.proxy.ServerProxy"; //Server Proxy Location public static enum MoreMaterialsItems { OBSIDIANINGOT("obsidianingot", "ItemObsidianingot"); private String unlocalizedName; private String registryName; MoreMaterialsItems(String unlocalizedName, String registryName) { this.unlocalizedName = unlocalizedName; this.registryName = registryName; } } } This is my Error: The method getRegistryName() is undefined for the type Reference.MoreMaterialsItems The method getUnlocalizedName() is undefined for the type Reference.MoreMaterilasItems I saw that another user had this error and someone suggested that he should rename the enum. I tried this out too but it didn't worked.

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.