Jump to content

[1.10.2] Quick reference on Blocks, Items and all that stuff.


Ernio

Recommended Posts

Hey there,

 

I haven't touched blocks, etc in damn long time and I basically want quick update as to what you do.

If someone could, please list every method you use in current modding of Blocks, Items and ItemBlock (I see there is no constructor taking ItemBlock?).

Just methods and classes (for other magical stuff) and maybe other references, also client stuff and variants and shit like that) - basically everything that comes to your mind. :)

 

Note: No need for any long descriptions.

 

Thanks :)

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Can't you just go on youtube and watch a tutorial (~5 minutes long)?

 

16xmvd.jpg

 

If you find me a tutorial listing all (probably about 15) methods regarding blocks, variants items-blocks and items in less than 5min - I will love you.

If not - I am asking for a simple favor that can save me probably hour of looking and checking if given method is actually the right way.

 

INSTA EDIT:

 

Thanks D7 :)

 

EDIT 2:

K

 

K :)

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

:)

 

Okay, 1st question:

 

Registry name is: modid:name

Should unlocalized name also contain modid?

 

// constructor
// name = "block"
this.setRegistryName(name); // internally converts to "modid:block"
this.setUnlocalizedName(this.getRegistryName().toString()); // will set to "modid:block"
// or
this.setUnlocalizedName(name); // will stay "block"

Does mc/forge somehow recognise per-mod lang translations?

For "modid:block" I am getting for example: "tile.modid:block.name" - is modid needed?

Asking because I've never did it this way, and I just saw this in some opensource.

 

2nd

Is is safe to assume that calling GameRegistry from constructor is safe - I know it is a bad practice, but I also know that it works, question is is it safe for internals (I can't really think of critical cases).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

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.