Minecraft Modding with Forge by Arun Gupta and Aditya Gupta

Minecraft Modding with Forge by Arun Gupta and Aditya Gupta

Author:Arun Gupta and Aditya Gupta
Language: eng
Format: mobi, pdf
Publisher: O'Reilly Media, Inc.
Published: 2015-04-16T16:00:00+00:00


This sets the block’s light level to 1.0 so that it will glow brightly and look awesome.

Now your block class is ready, but we still need to register the block in the main file.

Registering Your Block

Now, you need to register your block in the main file. First, create a variable in the main file as shown here (this variable will store the block in the form of the class you just made, and it goes directly after the first bracket):

public static Block enderBlock;

Note

Java naming conventions use camelcasing. Camelcasing is where you make the first letter of the first word lowercase, and the first letter of all of the other words uppercase. For example, EnderBlock in camelcasing would be enderBlock. Camelcasing is the preferred way of naming variables, but it is not the only way. For example, in this code, the words are separated with underscores.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.