Jump to content

Recommended Posts

Posted

I seem to get a crash whenever I attempt to craft any of my blocks. Why is this happening, and why does it only happen with blocks?

 

Crash

 

---- Minecraft Crash Report ----

// Who set us up the TNT?

 

Time: 8/18/14 8:49 PM

Description: Rendering item

 

java.lang.NullPointerException: Rendering item

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1145)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)

at net.minecraft.client.Minecraft.run(Minecraft.java:961)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at GradleStart.bounce(GradleStart.java:107)

at GradleStart.startClient(GradleStart.java:100)

at GradleStart.main(GradleStart.java:55)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)

 

-- Item being rendered --

Details:

Item Type: null

Item Aux: ~~ERROR~~ NullPointerException: null

Item NBT: null

Item Foil: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)

at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:291)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118)

 

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

Mouse location: Scaled: (180, 79). Absolute: (361, 321)

Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['ForgeDevName'/311, l='MpServer', x=-205.02, y=79.62, z=246.37]]

Chunk stats: MultiplayerChunkCache: 282, 282

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (-132,64,244), Chunk: (at 12,4,4 in -9,15; contains blocks -144,0,240 to -129,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 48925 game time, 48925 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 89 total; [EntitySkeleton['Skeleton'/128, l='MpServer', x=-229.46, y=81.08, z=252.31], EntityCreeper['Creeper'/129, l='MpServer', x=-219.38, y=77.00, z=262.00], EntityPig['Pig'/130, l='MpServer', x=-212.16, y=80.00, z=286.03], EntityPig['Pig'/131, l='MpServer', x=-208.94, y=81.00, z=273.81], EntityCreeper['Creeper'/132, l='MpServer', x=-213.75, y=11.00, z=318.94], EntityCreeper['Creeper'/133, l='MpServer', x=-212.83, y=11.26, z=304.89], EntityCreeper['Creeper'/134, l='MpServer', x=-211.63, y=21.00, z=310.34], EntityBat['Bat'/147, l='MpServer', x=-199.06, y=24.89, z=253.25], EntityPig['Pig'/148, l='MpServer', x=-201.75, y=76.00, z=237.09], EntityPig['Pig'/149, l='MpServer', x=-205.91, y=84.00, z=230.13], EntityItemFrame['entity.ItemFrame.name'/150, l='MpServer', x=-206.94, y=79.50, z=248.50], EntityItemFrame['entity.ItemFrame.name'/151, l='MpServer', x=-206.94, y=79.50, z=247.50], EntityItemFrame['entity.ItemFrame.name'/152, l='MpServer', x=-206.94, y=79.50, z=246.50], EntityItemFrame['entity.ItemFrame.name'/153, l='MpServer', x=-206.94, y=79.50, z=245.50], EntityItemFrame['entity.ItemFrame.name'/154, l='MpServer', x=-206.94, y=79.50, z=244.50], EntityPig['Pig'/155, l='MpServer', x=-193.81, y=70.00, z=289.66], EntityItem['item.item.bone'/156, l='MpServer', x=-198.03, y=70.13, z=290.88], EntityBat['Bat'/157, l='MpServer', x=-206.50, y=28.10, z=306.25], EntityPig['Pig'/158, l='MpServer', x=-201.94, y=71.00, z=321.03], EntityPig['Pig'/159, l='MpServer', x=-191.09, y=68.00, z=314.22], EntityPig['Pig'/160, l='MpServer', x=-200.16, y=71.00, z=317.03], EntitySheep['Sheep'/35, l='MpServer', x=-280.09, y=77.00, z=182.47], EntityZombie['Zombie'/36, l='MpServer', x=-284.50, y=17.00, z=228.50], EntitySheep['Sheep'/37, l='MpServer', x=-273.56, y=91.00, z=309.34], EntityCreeper['Creeper'/166, l='MpServer', x=-181.50, y=61.00, z=196.50], EntitySheep['Sheep'/38, l='MpServer', x=-283.06, y=88.00, z=313.16], EntityCreeper['Creeper'/167, l='MpServer', x=-183.50, y=61.00, z=192.50], EntitySheep['Sheep'/39, l='MpServer', x=-281.16, y=87.00, z=322.25], EntityPig['Pig'/168, l='MpServer', x=-190.09, y=69.00, z=283.25], EntityCreeper['Creeper'/169, l='MpServer', x=-179.50, y=24.00, z=294.50], EntityCreeper['Creeper'/170, l='MpServer', x=-182.50, y=24.00, z=290.50], EntityBat['Bat'/171, l='MpServer', x=-185.63, y=16.20, z=294.63], EntityBat['Bat'/172, l='MpServer', x=-181.75, y=43.00, z=294.53], EntityEnderman['Enderman'/173, l='MpServer', x=-187.47, y=49.00, z=303.53], EntityEnderman['Enderman'/174, l='MpServer', x=-187.50, y=49.00, z=298.50], EntitySkeleton['Skeleton'/175, l='MpServer', x=-184.91, y=50.00, z=302.50], EntityPig['Pig'/176, l='MpServer', x=-191.97, y=68.00, z=321.44], EntitySkeleton['Skeleton'/179, l='MpServer', x=-162.94, y=23.00, z=168.66], EntityZombie['Zombie'/181, l='MpServer', x=-157.34, y=44.00, z=210.03], EntityZombie['Zombie'/182, l='MpServer', x=-164.50, y=42.00, z=215.50], EntityBat['Bat'/183, l='MpServer', x=-168.25, y=16.85, z=278.84], EntityClientPlayerMP['ForgeDevName'/311, l='MpServer', x=-205.02, y=79.62, z=246.37], EntitySkeleton['Skeleton'/184, l='MpServer', x=-154.50, y=22.00, z=189.50], EntityZombie['Zombie'/185, l='MpServer', x=-149.53, y=17.00, z=200.31], EntityZombie['Zombie'/57, l='MpServer', x=-263.50, y=37.00, z=187.50], EntitySquid['Squid'/186, l='MpServer', x=-146.44, y=61.19, z=299.78], EntitySkeleton['Skeleton'/58, l='MpServer', x=-270.16, y=33.00, z=183.50], EntitySquid['Squid'/187, l='MpServer', x=-152.66, y=60.00, z=293.28], EntityCreeper['Creeper'/59, l='MpServer', x=-268.00, y=76.00, z=236.00], EntitySheep['Sheep'/60, l='MpServer', x=-261.16, y=96.00, z=307.66], EntityZombie['Zombie'/188, l='MpServer', x=-144.50, y=65.00, z=323.50], EntityBat['Bat'/192, l='MpServer', x=-133.75, y=16.00, z=206.56], EntitySkeleton['Skeleton'/193, l='MpServer', x=-132.50, y=21.00, z=218.50], EntitySkeleton['Skeleton'/194, l='MpServer', x=-135.50, y=60.00, z=269.50], EntityCreeper['Creeper'/195, l='MpServer', x=-130.03, y=53.00, z=266.38], EntityBat['Bat'/196, l='MpServer', x=-127.59, y=25.40, z=288.59], EntityPig['Pig'/197, l='MpServer', x=-137.31, y=69.00, z=298.50], EntityPig['Pig'/198, l='MpServer', x=-132.97, y=67.00, z=310.97], EntityPig['Pig'/199, l='MpServer', x=-143.69, y=69.00, z=308.50], EntityPig['Pig'/200, l='MpServer', x=-139.66, y=68.00, z=321.75], EntityBat['Bat'/76, l='MpServer', x=-252.34, y=43.10, z=190.34], EntityItem['item.item.bone'/77, l='MpServer', x=-240.75, y=84.13, z=199.72], EntityPig['Pig'/78, l='MpServer', x=-241.09, y=95.00, z=251.88], EntityPig['Pig'/79, l='MpServer', x=-245.03, y=96.00, z=248.03], EntityEnderman['Enderman'/80, l='MpServer', x=-248.50, y=25.00, z=256.50], EntityBat['Bat'/81, l='MpServer', x=-251.72, y=18.01, z=256.44], EntityPig['Pig'/82, l='MpServer', x=-252.84, y=94.00, z=264.63], EntityPig['Pig'/83, l='MpServer', x=-245.97, y=96.00, z=264.59], EntityCreeper['Creeper'/84, l='MpServer', x=-243.50, y=24.00, z=303.50], EntityPig['Pig'/85, l='MpServer', x=-253.19, y=90.00, z=297.06], EntityPig['Pig'/98, l='MpServer', x=-231.84, y=87.00, z=221.56], EntitySkeleton['Skeleton'/99, l='MpServer', x=-239.63, y=89.00, z=248.09], EntityPig['Pig'/100, l='MpServer', x=-224.47, y=91.00, z=247.66], EntityPig['Pig'/101, l='MpServer', x=-225.50, y=87.00, z=278.50], EntityPig['Pig'/102, l='MpServer', x=-243.47, y=97.00, z=266.34], EntityPig['Pig'/103, l='MpServer', x=-221.53, y=83.00, z=276.17], EntityPig['Pig'/104, l='MpServer', x=-228.58, y=81.62, z=275.47], EntityPig['Pig'/105, l='MpServer', x=-231.69, y=85.00, z=287.50], EntityPig['Pig'/106, l='MpServer', x=-228.97, y=83.00, z=300.09], EntityZombie['Zombie'/107, l='MpServer', x=-234.50, y=25.00, z=315.50], EntitySpider['Spider'/108, l='MpServer', x=-236.13, y=23.84, z=307.28], EntityZombie['Zombie'/109, l='MpServer', x=-232.50, y=23.00, z=305.50], EntityZombie['Zombie'/110, l='MpServer', x=-229.50, y=37.00, z=311.50], EntityZombie['Zombie'/111, l='MpServer', x=-224.50, y=39.00, z=317.91], EntityPig['Pig'/123, l='MpServer', x=-222.69, y=79.00, z=200.53], EntityPig['Pig'/124, l='MpServer', x=-215.53, y=71.00, z=193.31], EntityPig['Pig'/125, l='MpServer', x=-212.47, y=84.00, z=213.16], EntityPig['Pig'/126, l='MpServer', x=-221.88, y=86.00, z=219.97], EntityPig['Pig'/127, l='MpServer', x=-213.13, y=85.00, z=222.09]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:417)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2568)

at net.minecraft.client.Minecraft.run(Minecraft.java:982)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at GradleStart.bounce(GradleStart.java:107)

at GradleStart.startClient(GradleStart.java:100)

at GradleStart.main(GradleStart.java:55)

 

 

MainRegistry

 

package com.crystal.main;

 

import com.crystal.block.BlockManager;

import com.crystal.creativetab.CreativeTabsManager;

import com.crystal.entity.EntityManager;

import com.crystal.generators.ClusterGenerator;

import com.crystal.item.ItemManager;

import com.crystal.lib.StringLibrary;

import com.crystal.recipe.RecipeManager;

 

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.registry.GameRegistry;

 

@Mod(modid="cm", name="Crystal Mod", version="1.0")

 

public class MainRegistry{

 

@SidedProxy(clientSide = "com.crystal.main.ClientProxy", serverSide = "com.crystal.main.ServerProxy")

public static ServerProxy proxy;

@Instance(value = StringLibrary.MODID)

public static MainRegistry modInstance;

public static ClusterGenerator clusterGenerator;

 

 

    @EventHandler

    public static void PreLoad(FMLPreInitializationEvent PreEvent) {

    CreativeTabsManager.mainRegistry();

    ItemManager.mainRegistry();

    RecipeManager.mainRegistry();

    proxy.registerRenderThings();

    BlockManager.mainRegistry();

    EntityManager.mainRegistry();

 

    }

 

    @EventHandler

    public static void Load(FMLInitializationEvent Event) {   

    clusterGenerator=new ClusterGenerator();

    GameRegistry.registerWorldGenerator(clusterGenerator, 0);

   

    }

 

    @EventHandler

    public static void PostLoad(FMLPostInitializationEvent PostEvent) {

 

    }

 

   

}

 

 

RecipeManager

 

package com.crystal.recipe;

 

import net.minecraft.item.ItemStack;

 

import com.crystal.block.BlockManager;

import com.crystal.item.ItemManager;

 

import cpw.mods.fml.common.registry.GameRegistry;

 

public class RecipeManager{

 

    public static void mainRegistry(){

        addCraftingRecipes();

        addSmeltingRecipes();

 

    }//end mainRegistry

 

 

    public static void addCraftingRecipes() {

 

        //Shapeless Recipes

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.amethyst), BlockManager.amythestBlock);

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.blackSapphire, 9), new ItemStack (BlockManager.blackSapphireBlock));

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.blueTopaz, 9), new ItemStack (BlockManager.blueTopazBlock));

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.carnelian, 9), new ItemStack (BlockManager.carnelianBlock));

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.peridot, 9), new ItemStack (BlockManager.peridotBlock));

    //GameRegistry.addShapelessRecipe(new ItemStack(ItemManager.roseQuartz, 9), new ItemStack (BlockManager.roseQuartzBlock));

   

        //Shaped Recipes

   

    GameRegistry.addShapedRecipe(new ItemStack(BlockManager.amythestBlock), "xxx", "xxx", "xxx", 'x', ItemManager.amethyst);

    //GameRegistry.addShapedRecipe(new ItemStack(BlockManager.blackSapphireBlock), "xxx", "xxx", "xxx", 'x', ItemManager.blackSapphire);

    GameRegistry.addShapedRecipe(new ItemStack(BlockManager.blueTopazBlock), "xxx", "xxx", "xxx", 'x', ItemManager.blueTopaz);

    GameRegistry.addShapedRecipe(new ItemStack(BlockManager.carnelianBlock), "xxx", "xxx", "xxx", 'x', ItemManager.carnelian);

    GameRegistry.addShapedRecipe(new ItemStack(BlockManager.peridotBlock), "xxx", "xxx", "xxx", 'x', ItemManager.peridot);

    GameRegistry.addShapedRecipe(new ItemStack(BlockManager.roseQuartzBlock), "xxx", "xxx", "xxx", 'x', ItemManager.roseQuartz);

   

    }//end addCraftingRecipes   

   

    public static void addSmeltingRecipes() {

        //GameRegistry.addSmelting(new ItemStack(BlockManager.hylianOre), new ItemStack(ItemManager.hylianIngot), 0.1f);

       

    }//end addSmeltingRecipes

 

}//end class

 

 

BlockManager

 

package com.crystal.block;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import cpw.mods.fml.common.registry.GameRegistry;

 

public class BlockManager {

 

    public static void mainRegistry() {

        initializeBlock();

        registerBlock();

       

    }

   

    public static Block carnelianCluster;

    public static Block amythestCluster;

    public static Block roseQuartzCluster;

    public static Block blueTopazCluster;

    public static Block blackSapphireCluster;

    public static Block peridotCluster;

    public static Block amythestBlock;

    public static Block blackSapphireBlock;

    public static Block blueTopazBlock;

    public static Block carnelianBlock;

    public static Block peridotBlock;

    public static Block roseQuartzBlock;

    public static Block alabasterBlock;

    public static Block citrineBlock;

    public static Block fireOpalBlock;

    public static Block kunziteBlock;

    public static Block opalBlock;

    public static Block pearlBlock;

    public static Block amethystBasicIronStainedGlass;

    public static Block amethystDecorativeIronStainedGlass;

    public static Block amethystBasicGoldStainedGlass;

    public static Block amethystDecorativeGoldStainedGlass;

    public static Block carnelianBasicIronStainedGlass;

    public static Block carnelianDecorativeIronStainedGlass;

    public static Block carnelianBasicGoldStainedGlass;

    public static Block carnelianDecorativeGoldStainedGlass;

    public static Block roseQuartzBasicIronStainedGlass;

    public static Block roseQuartzDecorativeIronStainedGlass;

    public static Block roseQuartzBasicGoldStainedGlass;

    public static Block roseQuartzDecorativeGoldStainedGlass;

    public static Block blueTopazDecorativeIronStainedGlass;

    public static Block blueTopazBasicIronStainedGlass;

    public static Block blueTopazBasicGoldStainedGlass;

    public static Block blueTopazDecorativeGoldStainedGlass;

    public static Block peridotBasicIronStainedGlass;

    public static Block peridotDecorativeIronStainedGlass;

    public static Block peridotBasicGoldStainedGlass;

    public static Block peridotDecorativeGoldStainedGlass;

    public static Block citrineBasicIronStainedGlass;

    public static Block citrineDecorativeIronStainedGlass;

    public static Block citrineBasicGoldStainedGlass;

    public static Block citrineDecorativeGoldStainedGlass;

    public static Block alabasterBasicIronStainedGlass;

    public static Block alabasterDecorativeIronStainedGlass;

    public static Block alabasterBasicGoldStainedGlass;

    public static Block alabasterDecorativeGoldStainedGlass;

    public static Block garnetBasicIronStainedGlass;

    public static Block garnetDecorativeIronStainedGlass;

    public static Block garnetBasicGoldStainedGlass;

    public static Block garnetDecorativeGoldStainedGlass;

    public static Block fireOpalBasicIronStainedGlass;

    public static Block fireOpalDecorativeIronStainedGlass;

    public static Block fireOpalBasicGoldStainedGlass;

    public static Block fireOpalDecorativeGoldStainedGlass;

    public static Block opalBasicIronStainedGlass;

    public static Block opalDecorativeIronStainedGlass;

    public static Block opalBasicGoldStainedGlass;

    public static Block opalDecorativeGoldStainedGlass;

    public static Block peridotOre;

    public static Block amethystOre;

    public static Block blueTopazOre;

    public static Block alabasterOre;

    public static Block citrineOre;

    public static Block fireOpalOre;

    public static Block kunziteOre;

    public static Block opalOre;

    public static Block pearlOre;

   

    public static void initializeBlock() {

    carnelianCluster = new CarnelianCluster(Material.rock);

    amythestCluster = new AmythestCluster(Material.rock);

    roseQuartzCluster = new RoseQuartzCluster(Material.rock);

    blueTopazCluster = new BlueTopazCluster(Material.rock);

    blackSapphireCluster = new BlackSapphireCluster(Material.rock);

    peridotCluster = new PeridotCluster(Material.rock);

    amythestBlock = new AmythestBlock(Material.iron);

    blackSapphireBlock = new BlackSapphireBlock(Material.iron);

    blueTopazBlock = new BlueTopazBlock(Material.iron);

    carnelianBlock = new CarnelianBlock(Material.iron);

    peridotBlock = new PeridotBlock(Material.iron);

    roseQuartzBlock = new RoseQuartzBlock(Material.iron);

    alabasterBlock = new AlabasterBlock(Material.iron);

    citrineBlock = new CitrineBlock(Material.iron);

    fireOpalBlock = new FireOpalBlock(Material.iron);

    kunziteBlock = new KunziteBlock(Material.iron);

    opalBlock = new OpalBlock(Material.iron);

    pearlBlock = new PearlBlock(Material.iron);

    amethystBasicIronStainedGlass = new AmethystBasicIronStainedGlass(Material.glass);

    amethystDecorativeIronStainedGlass = new AmethystDecorativeIronStainedGlass(Material.glass);

    amethystBasicGoldStainedGlass = new AmethystBasicGoldStainedGlass(Material.glass);

    amethystDecorativeGoldStainedGlass = new AmethystDecorativeGoldStainedGlass(Material.glass);

    carnelianBasicIronStainedGlass = new CarnelianBasicIronStainedGlass(Material.glass);

    carnelianDecorativeIronStainedGlass = new CarnelianDecorativeIronStainedGlass(Material.glass);

    carnelianBasicGoldStainedGlass = new CarnelianBasicGoldStainedGlass(Material.glass);

    carnelianDecorativeGoldStainedGlass = new CarnelianDecorativeGoldStainedGlass(Material.glass);

    roseQuartzBasicIronStainedGlass = new RoseQuartzBasicIronStainedGlass(Material.glass);

    roseQuartzDecorativeIronStainedGlass = new RoseQuartzDecorativeIronStainedGlass(Material.glass);

    roseQuartzBasicGoldStainedGlass = new RoseQuartzBasicGoldStainedGlass(Material.glass);

    roseQuartzDecorativeGoldStainedGlass = new RoseQuartzDecorativeGoldStainedGlass(Material.glass);

    blueTopazBasicIronStainedGlass = new BlueTopazBasicIronStainedGlass(Material.glass);

    blueTopazDecorativeIronStainedGlass = new BlueTopazDecorativeIronStainedGlass(Material.glass);

    blueTopazBasicGoldStainedGlass = new BlueTopazBasicGoldStainedGlass(Material.glass);

    blueTopazDecorativeGoldStainedGlass = new BlueTopazDecorativeGoldStainedGlass(Material.glass);

    peridotBasicIronStainedGlass = new PeridotBasicIronStainedGlass(Material.glass);

    peridotDecorativeIronStainedGlass = new PeridotDecorativeIronStainedGlass(Material.glass);

    peridotBasicGoldStainedGlass = new PeridotBasicGoldStainedGlass(Material.glass);

    peridotDecorativeGoldStainedGlass = new PeridotDecorativeGoldStainedGlass(Material.glass);

    citrineBasicIronStainedGlass = new CitrineBasicIronStainedGlass(Material.glass);

    citrineDecorativeIronStainedGlass = new CitrineDecorativeIronStainedGlass(Material.glass);

    citrineBasicGoldStainedGlass = new CitrineBasicGoldStainedGlass(Material.glass);

    citrineDecorativeGoldStainedGlass = new CitrineDecorativeGoldStainedGlass(Material.glass);

    alabasterBasicIronStainedGlass = new AlabasterBasicIronStainedGlass(Material.glass);

    alabasterDecorativeIronStainedGlass = new AlabasterDecorativeIronStainedGlass(Material.glass);

    alabasterBasicGoldStainedGlass = new AlabasterBasicGoldStainedGlass(Material.glass);

    alabasterDecorativeGoldStainedGlass = new AlabasterDecorativeGoldStainedGlass(Material.glass);

    garnetBasicIronStainedGlass = new GarnetBasicIronStainedGlass(Material.glass);

    garnetDecorativeIronStainedGlass = new GarnetDecorativeIronStainedGlass(Material.glass);

    garnetBasicGoldStainedGlass = new GarnetBasicGoldStainedGlass(Material.glass);

    garnetDecorativeGoldStainedGlass = new GarnetDecorativeGoldStainedGlass(Material.glass);

    fireOpalBasicIronStainedGlass = new FireOpalBasicIronStainedGlass(Material.glass);

    fireOpalDecorativeIronStainedGlass = new FireOpalDecorativeIronStainedGlass(Material.glass);

    fireOpalBasicGoldStainedGlass = new FireOpalBasicGoldStainedGlass(Material.glass);

    fireOpalDecorativeGoldStainedGlass = new FireOpalDecorativeGoldStainedGlass(Material.glass);

    opalBasicIronStainedGlass = new OpalBasicIronStainedGlass(Material.glass);

    opalDecorativeIronStainedGlass = new OpalDecorativeIronStainedGlass(Material.glass);

    opalBasicGoldStainedGlass = new OpalBasicGoldStainedGlass(Material.glass);

    opalDecorativeGoldStainedGlass = new OpalDecorativeGoldStainedGlass(Material.glass);

    peridotOre = new PeridotOre(Material.rock);

    amethystOre = new AmethystOre(Material.rock);

    blueTopazOre = new BlueTopazOre(Material.rock);

    alabasterOre = new AlabasterOre(Material.rock);

    citrineOre = new CitrineOre(Material.rock);

    fireOpalOre = new FireOpalOre(Material.rock);

    kunziteOre = new KunziteOre(Material.rock);

    opalOre = new OpalOre(Material.rock);

    pearlOre = new PearlOre(Material.rock);

    }

 

    public static void registerBlock() {

    GameRegistry.registerBlock(carnelianCluster, carnelianCluster.getUnlocalizedName());

    GameRegistry.registerBlock(amythestCluster, amythestCluster.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzCluster, roseQuartzCluster.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazCluster, blueTopazCluster.getUnlocalizedName());

    GameRegistry.registerBlock(blackSapphireCluster, blackSapphireCluster.getUnlocalizedName());

    GameRegistry.registerBlock(peridotCluster, peridotCluster.getUnlocalizedName());

    GameRegistry.registerBlock(amythestBlock, amythestBlock.getUnlocalizedName());

    GameRegistry.registerBlock(blackSapphireBlock, blackSapphireBlock.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazBlock, blueTopazBlock.getUnlocalizedName());

    GameRegistry.registerBlock(carnelianBlock, carnelianBlock.getUnlocalizedName());

    GameRegistry.registerBlock(peridotBlock, peridotBlock.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzBlock, roseQuartzBlock.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterBlock, alabasterBlock.getUnlocalizedName());

    GameRegistry.registerBlock(citrineBlock, citrineBlock.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalBlock, fireOpalBlock.getUnlocalizedName());

    GameRegistry.registerBlock(kunziteBlock, kunziteBlock.getUnlocalizedName());

    GameRegistry.registerBlock(opalBlock, opalBlock.getUnlocalizedName());

    GameRegistry.registerBlock(pearlBlock, pearlBlock.getUnlocalizedName());

    GameRegistry.registerBlock(amethystBasicIronStainedGlass, amethystBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(amethystDecorativeIronStainedGlass, amethystDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(amethystBasicGoldStainedGlass, amethystBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(amethystDecorativeGoldStainedGlass, amethystDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(carnelianBasicIronStainedGlass, carnelianBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(carnelianDecorativeIronStainedGlass, carnelianDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(carnelianBasicGoldStainedGlass, carnelianBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(carnelianDecorativeGoldStainedGlass, carnelianDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzBasicIronStainedGlass, roseQuartzBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzDecorativeIronStainedGlass, roseQuartzDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzBasicGoldStainedGlass, roseQuartzBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(roseQuartzDecorativeGoldStainedGlass, roseQuartzDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazBasicIronStainedGlass, blueTopazBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazDecorativeIronStainedGlass, blueTopazDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazBasicGoldStainedGlass, blueTopazBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazDecorativeGoldStainedGlass, blueTopazDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(peridotBasicIronStainedGlass, peridotBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(peridotDecorativeIronStainedGlass, peridotDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(peridotBasicGoldStainedGlass, peridotBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(peridotDecorativeGoldStainedGlass, peridotDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(citrineBasicIronStainedGlass, citrineBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(citrineDecorativeIronStainedGlass, citrineDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(citrineBasicGoldStainedGlass, citrineBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(citrineDecorativeGoldStainedGlass, citrineDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterBasicIronStainedGlass, alabasterBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterDecorativeIronStainedGlass, alabasterDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterBasicGoldStainedGlass, alabasterBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterDecorativeGoldStainedGlass, alabasterDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalBasicIronStainedGlass, fireOpalBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalDecorativeIronStainedGlass, fireOpalDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalBasicGoldStainedGlass, fireOpalBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalDecorativeGoldStainedGlass, fireOpalDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(opalBasicIronStainedGlass, opalBasicIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(opalDecorativeIronStainedGlass, opalDecorativeIronStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(opalBasicGoldStainedGlass, opalBasicGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(opalDecorativeGoldStainedGlass, opalDecorativeGoldStainedGlass.getUnlocalizedName());

    GameRegistry.registerBlock(peridotOre, peridotOre.getUnlocalizedName());

    GameRegistry.registerBlock(amethystOre, amethystOre.getUnlocalizedName());

    GameRegistry.registerBlock(blueTopazOre, blueTopazOre.getUnlocalizedName());

    GameRegistry.registerBlock(alabasterOre, alabasterOre.getUnlocalizedName());

    GameRegistry.registerBlock(citrineOre, citrineOre.getUnlocalizedName());

    GameRegistry.registerBlock(fireOpalOre, fireOpalOre.getUnlocalizedName());

    GameRegistry.registerBlock(kunziteOre, kunziteOre.getUnlocalizedName());

    GameRegistry.registerBlock(opalOre, opalOre.getUnlocalizedName());

    GameRegistry.registerBlock(pearlOre, pearlOre.getUnlocalizedName());

    }

}

 

Posted

java.lang.NullPointerException: Rendering item

  at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:267)

 

Line 267 of ItemStack looks like:

 

public int getItemDamage()

    {

        return getItem().getDamage(this);

    }

 

So, you have an ItemStack with a null item. My guess is your class BlockManager is returning null when one (or all) of its fields are being referenced:

 

      GameRegistry.addShapedRecipe(new ItemStack(BlockManager.amythestBlock), "xxx", "xxx", "xxx", 'x', ItemManager.amethyst);

      GameRegistry.addShapedRecipe(new ItemStack(BlockManager.blueTopazBlock), "xxx", "xxx", "xxx", 'x', ItemManager.blueTopaz);

      GameRegistry.addShapedRecipe(new ItemStack(BlockManager.carnelianBlock), "xxx", "xxx", "xxx", 'x', ItemManager.carnelian);

      GameRegistry.addShapedRecipe(new ItemStack(BlockManager.peridotBlock), "xxx", "xxx", "xxx", 'x', ItemManager.peridot);

      GameRegistry.addShapedRecipe(new ItemStack(BlockManager.roseQuartzBlock), "xxx", "xxx", "xxx", 'x', ItemManager.roseQuartz);

 

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, I've been having trouble trying to use forge as it shows a black screen when I open the game, but I can still interact with it and hear the music.  I've done all of the step by steps and most common fixes like updating drivers, keeping up to date with Java, deleting and reinstalling minecraft, restarting my computer MANY times, even smaller things like splash.properties (I didn't have that file so I added it and set it to false thinking it would do something, definitely not) and making sure to prioritize my rtx 3070 in the settings but with no luck. Minecraft works as intended when I uninstall forge and I also don't have any mods currently, it just gives me this issue when I install forge. I also increased the ram usage, made sure my hardware isn't full or anything, and even changed the resolution in hopes it would fix things. I checked my antivirus and firewall but that isn't the issue either. Trust me, I've done everything I can think of. For some reason the black screen does flicker a little into the main menu, but obviously unplayable. I couldn't even make my way to the settings with how little it flickered. I'm not sure if it flickered randomly or if it was because I was messing around moving and clicking a bunch, I didn't really test it that much.  
    • I've had a really weird issue recently,  I wanted to add the Depper and Darker mod on my dedicated server (MC 1.21 with Fabric 0.16.9, hosted on nitroserv.com) but whenever I do add the mod the sever stops doing anything after listing the mods, and I get no crash or error or anything, just a stuck server. Here's a normal log of the server booting up: https://pastebin.com/JipFF2Eh and here's the log of the server doing the weird thing: https://pastebin.com/W4JBh3eX I just don't understand it. I've tried removing other mods (somewhat randomly) but deeper and darker still breaks my server whenever I add it. NitroServ support staff is about as confused as I am and I've had no response from the Deeper and Darker support staff... Now I know this is the Forge support not the Fabric support but I'm just trying to know if anyone has any kind of idea to fix this (aside from not using the mod obviously) Also I still have a bunch of errors and warnings whenever the server does start properly, are there any of them I should be worried about?
    • Delete the config of RandomTweaker (config folder) If there is no change, remove this mod
    • Hello! So i have been trying to make a mod that adds plant fiber to minecraft 1.16.5 (i believe there are mods that add plant fiber but not for 1.16.5) but the problem is that i want to modify the loot table of grass to always drop plant fiber but also keep the vanilla drops. Most common answer i have seen is GlobalLootModifiers. But my tiny brain cant understand any tutorials. So any help is appreciated.
  • Topics

×
×
  • Create New...

Important Information

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