Jump to content

Recommended Posts

Posted

So I just started coding a mod and I started coding items. 
It says can't resolve symbol for mod name even tho i have already put this on the main class 

private static final String MOD_ID = "newmod";

 

public static final DeferredRegister<Item> Items = new DeferredRegister<>(ForgeRegistries.ITEMS, newmod.MOD_ID);

yea idk whats going on

Posted

What does this mean?

C:\Users\Kevin\Desktop\Mods\TechExpansions\src\main\java\com\kevin\techexpansions\util\RegistryHandler.java:20: error: <T>DeferredRegister(IForgeRegistry<T>,String) has private access in DeferredRegister
    public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TechExpansions.MOD_ID);
                                                       ^
  where T is a type-variable:
    T extends IForgeRegistryEntry<T> declared in class DeferredRegister

public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, TechExpansions.MOD_ID);

 

private static final Logger LOGGER = LogManager.getLogger();

that is the connected problem code

Posted

Learn Java before modding, do not learn Java by modding.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

JavaScript and Java are nothing alike.

Their only similarity is both were named by people who wanted to invoke the image of coffee with the name of their language.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 10/2/2020 at 12:10 AM, DaemonUmbra said:

JavaScript and Java are nothing alike.

Their only similarity is both were named by people who wanted to invoke the image of coffee with the name of their language.

Expand  

This isn't even true either. Sun named Java "Java" because reasons (which were probably coffee related) and then spent a few million dollars marketing it.

JavaScript on the other hand was being developed independently, saw the huge advertising Sun was doing for Java and said, "We need to name it Java-something so that we can piggy back off their advertising."

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 10/2/2020 at 4:10 AM, Draco18s said:

This isn't even true either. Sun named Java "Java" because reasons (which were probably coffee related) and then spent a few million dollars marketing it.

JavaScript on the other hand was being developed independently, saw the huge advertising Sun was doing for Java and said, "We need to name it Java-something so that we can piggy back off their advertising."

Expand  

 

And even more so, most developers don't even call Javascript -- well javascript. It is known as ECMAscript 6 or ES6 (Newest Version). Javascript was made by a consortium and is maintained by such. But know they are most definitely the same thing. And ES6 is not a programming language, it is a client side UI interaction language in the same sense that SQL is not a programming language. It does not program, it modifies the user environment based on limited interactions. Frameworks are coming out that are getting it closer to acting like a programming language. 

Posted (edited)
  On 10/2/2020 at 2:57 PM, diesieben07 said:

This is a whole load of BS.

Nobody (well, not nobody...) calls it ECMAscript. You write stuff in JavaScript.

And JavaScript (or "ES6") is very much a programming language.

Expand  

I did not mean this as a "Keyboard Courage" attack on any one. I am currently a full stack .net dev by profession. I use ES6 or JS quite frequently and do not consider it a 'lower' language. I was just pointing out differences to the argument. But as language classification goes, it is under the same category as HTML, CSS, SQL none of which are 'Programming' languages but that I no way means that it is inferior. In its name, says what it is. It is a scripting language not a programming language. Programming languages must be compiled to binary prior to deployment, Java, C , C++, VB, C#, LUA, python are programming languages.  And yes python can run natively in a CLI, but it is still compiled by the python IDLE. I enjoy JavaScript and use it a lot. I just wanted to educate so that new dev's can form a correct distinction and don't look like fools on job interviews by saying, "I program in JavaScript". "But what about Node.js, they program with that" Yes, but like I said, it is a framework creating the environment allowing it to happen and saying "I program in Node.js" is a valid statement.. JavaScript by its self is a scripting language. Again, meant no offense, just wanted to add clarification and in no way was it an attempt to degrade or demean an individual or group.

Edited by BrewMstr88

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.