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.

LoneWoIf

Members
  • Joined

  • Last visited

  1. That is totally right and I was totally being dumb
  2. I am fucking dumb, thank you ?
  3. /** * Annotate a class which will be subscribed to an Event Bus at mod construction time. * Defaults to subscribing the current modid to the {@link MinecraftForge#EVENT_BUS} * on both sides. * * @see Bus */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @interface EventBusSubscriber { /** * Annotation to subscribe a method to an {@link Event} * * This annotation can only be applied to single parameter methods, where the single parameter is a subclass of * {@link Event}. * * Use {@link IEventBus#register(Object)} to submit either an Object instance or a {@link Class} to the event bus * for scanning to generate callback {@link IEventListener} wrappers. * * The Event Bus system generates an ASM wrapper that dispatches to the marked method. */ @Retention(value = RUNTIME) @Target(value = METHOD) public @interface SubscribeEvent Sorry, but I still don't see your point. My method is a single parameter method with a subclass of Event. And I use IEventBus#register to submit my Item instance... TurtyWurtys video tutorial. I just was getting myself upgraded from 1.7 to 1.15
  4. LoneWoIf joined the community
  5. I really don't know what I am doing wrong here. Probably some simple and stupid mistake. I followed along with a small tutorial on how to create Forge Items but somehow my ObjectHolder doesn't seem to work. It just keeps sending this message: [Render thread/DEBUG] [ne.mi.re.ObjectHolderRef/]: Unable to lookup mymod:example_item for public static net.minecraft.item.Item se.lonewolf.mymod.common.items.ItemInit.example_item. This means the object wasn't registered. It's likely just mod options. My ItemInit class: @Mod.EventBusSubscriber(modid = MyMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) @ObjectHolder(MyMod.MOD_ID) public class ItemInit { public static final Item example_item = null; @SubscribeEvent public void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().register(new Item(new Item.Properties().group(ItemGroup.MATERIALS)).setRegistryName("example_item")); } } Can anyone spot what I was doing wrong here?

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.