package com.Trajectory989.Ender_Expansion.init;
import com.Trajectory989.Ender_Expansion.blocks.BlockCorruptStone;
import com.Trajectory989.Ender_Expansion.blocks.BlockProfanePutrefaction;
import com.Trajectory989.Ender_Expansion.blocks.BlockSaturatedAsh;
import com.Trajectory989.Ender_Expansion.items.ItemViscousTenevris;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModBlocks {
public static Block saturatedAsh;
public static Block corruptStone;
public static Block profanePutrefaction;
public static void init() {
saturatedAsh = new BlockSaturatedAsh(ModItems.viscousTenevris, 1, 5);
corruptStone = new BlockCorruptStone();
profanePutrefaction = new BlockProfanePutrefaction();
}
public static void register() {
registerBlock(saturatedAsh);
registerBlock(corruptStone);
registerBlock(profanePutrefaction);
}
private static void registerBlock(Block block) {
GameRegistry.register(block);
ItemBlock item = new ItemBlock(block);
item.setRegistryName(block.getRegistryName());
GameRegistry.register(item);
}
public static void registerRenders() {
registerRender(saturatedAsh);
registerRender(corruptStone);
registerRender(profanePutrefaction);
}
private static void registerRender(Block block) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));
}
}
this is the class where I initialize my blocks, I believe. Else it would be here:
package com.Trajectory989.Ender_Expansion;
public class VariablesNJunk {
public static final String MOD_ID = "leedle";
public static final String NAME = "Ender Expansion";
public static final String VERSION = "pleb (1.0.0)";
public static final String ACCEPTED_VERSIONS = "[1.11.2]";
public static final String CLIENT_PROXY_CLASS = "com.Trajectory989.Ender_Expansion.proxy.ClientProxy";
public static final String SERVER_PROXY_CLASS = "com.Trajectory989.Ender_Expansion.proxy.ServerProxy";
public static final String COMMON_PROXY_CLASS = "com.Trajectory989.Ender_Expansion.proxy.CommonProxy";
public static enum EnderExpansionItems {
VISCOUSTENEVRIS("viscousTenevris", "ItemViscousTenevris"),
INGOTTENEVRIS("ingot_Tenevris", "ItemIngotTenevris");
private String unlocalizedName;
private String registryName;
EnderExpansionItems(String unlocalizedName, String registryName) {
this.unlocalizedName = unlocalizedName;
this.registryName = registryName;
}
public String getUnlocalizedName() {
return unlocalizedName;
}
public String getRegistryName() {
return registryName;
}
}
public static enum EnderExpansionBlocks {
SATURATEDASH("saturatedAsh", "BlockSaturatedAsh"),
CORRUPTSTONE("corruptStone", "BlockCorruptStone"),
PROFANEPUTREFACTION("profanePutrefaction", "BlockProfanePutrefaction");
private String unlocalizedName;
private String registryName;
EnderExpansionBlocks(String unlocalizedName, String registryName) {
this.unlocalizedName = unlocalizedName;
this.registryName = registryName;
}
public String getUnlocalizedName() {
return unlocalizedName;
}
public String getRegistryName() {
return registryName;
}
}
}
the rest of my source can be found in the provided zip. I have it left with super(Material.GROUND); so there is a fatal error there still.
Source.zip