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.

Heizer

Members
  • Joined

  • Last visited

  1. Oh ok, I thought it is for Java ok. shame on me for that, but where can I finde Java Suport? Or could you help me with finding a Website or Discord for it? Sorry, I don't want to steal your Time!!!
  2. Sorry, how can I learn basic Java if I nerver get help anywhere, like now? XD
  3. Heizer joined the community
  4. Sorry, I also just started with learning coding. But the documentation don't solve the problem! (The Problem is what I underline here: "new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod ..." public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod.MOD_ID); Hole Code: package com.NotHeizer.TestMod.util; import com.NotHeizer.TestMod.TestMod; import com.NotHeizer.TestMod.items.ItemBase; import net.minecraft.item.Item; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class RegisteryHandler { public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod.MOD_ID); public static void init() { ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus()); //Items public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", ItemBase::new) } This was my "util" package. If I go into my TestMod (the Name of my Mod) Package there is 1 related Problem: package com.NotHeizer.TestMod; import com.NotHeizer.TestMod.util.RegisteryHandler; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod("TMod") public class TestMod { private static final Logger LOGGER = LogManager.getLogger(); public static final String MOD_ID = "TestMod"; public TestMod() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); RegisteryHandler.init(); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { } private void doClientStuff(final FMLClientSetupEvent event) { } } You can't see it, but after: @Mod("TMod") public class TestMod { private static final Logger LOGGER = LogManager.getLogger(); and Befor: public static final String MOD_ID = "TestMod"; there stands: "1 related Problem" in red and if I klick on it, it sends me to: "new DeferredRegister<>(ForgeRegistries.ITEMS, TestMod ..." (btw"DeferredRegister<>" is than marked. I am a beginner, and I am not good at it, but I read through the documentation and could not find something that could help me, or I am still not good enough. Can you help me? Sorry for my bad englisch And I saw your Name, it sounds German, so if you are German, I am too so pleas write me in German if you can so that I could understand easily! Tanks in advanced!

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.