I've been learning a bit of modding and so far I've been stopped in my tracks by this error I tried to add an item to the game but the only error Im having is with the Deferred Registers here's what its says:
'DeferredRegister(net.minecraftforge.registries.IForgeRegistry<T>, java.lang.String)' has private access in 'net.minecraftforge.registries.DeferredRegister'
I've looked all over the internet and even compared it to the correct way it is the exact same.
Here's the rest of the code in RegistryHadler.java:
package com.Justforgames250.tutorialmod.util;
import com.Justforgames250.tutorialmod.Tutorial;
import com.Justforgames250.tutorialmod.items.ItemBase;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
public class RegistryHandler {
public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, Tutorial.MOD_ID);//heres where i get the error
//Items
public static final RegistryObject<Item> RUBY = ITEMS.register("testitem", ItemBase::new);
}
Any help would be appreciated. I'm using 1.15.2 forge and am fine with providing more info if asked too. Thanks.