Помощь с печью.Gui[1.7.10]

Версия Minecraft
1.7.10
API
Forge
31
1
1
Не открывается Gui я честно сказать не понимаю почему.
Container:
package com.endienasg.container;

import com.endienasg.tileentity.TileEntityAlabasterOven;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.Slot;
import net.minecraft.inventory.SlotFurnace;


public class ContainerAlabasterOven extends Container {

    private TileEntityAlabasterOven alabasterOven;

    public int lastBurnTime;
    public int lastCurrentItemBurnTime;
    public int lastCookTime;
  
    public ContainerAlabasterOven(InventoryPlayer inventory,TileEntityAlabasterOven tileentity)
    {
        this.alabasterOven = tileentity;
      
        this.addSlotToContainer(new Slot(tileentity, 0 ,56,17));
        this.addSlotToContainer(new Slot(tileentity, 1 ,56,52));
        this.addSlotToContainer(new SlotFurnace(inventory.player,tileentity,2, 116,35));

      
        for(int i = 0; i < 3; i++)
        {
            for(int j = 0; j <9; j++)
            {
                this.addSlotToContainer(new Slot(inventory, j + i* 9 + 9, 8 + j*18, 94 + i * 18));
                //84 y
                //19 Slot y
              
            }
        }
        for(int i =0; i < 9; i++)
        {
            this.addSlotToContainer(new Slot(inventory, i, 8 + i * 18, 142));
        }
    }

  
  
    public void addCraftingToCrafters(ICrafting icrafting) {
        super.addCraftingToCrafters(icrafting);
        icrafting.sendProgressBarUpdate(this,0,this.alabasterOven.cookTime);
        icrafting.sendProgressBarUpdate(this,1,this.alabasterOven.burnTime);
        icrafting.sendProgressBarUpdate(this,2,this.alabasterOven.currentItemBurnTime);

    }
  

    public void detectAndSendChanges() {
        super.detectAndSendChanges();
        for(int i=0; i < this.crafters.size(); i++)
        {
            ICrafting icrafting = (ICrafting) this.crafters.get(i);
            //laseCookTime
            if(this.lastCookTime != this.alabasterOven.cookTime)
            {
                icrafting.sendProgressBarUpdate(this, 0, this.alabasterOven.cookTime);
            }
            //lastBurnTime
            if(this.lastBurnTime != this.alabasterOven.burnTime)
            {
                icrafting.sendProgressBarUpdate(this, 1, this.alabasterOven.burnTime);
            }
            //LastCurrentItemBurnTime
            if(this.lastCurrentItemBurnTime != this.alabasterOven.currentItemBurnTime)
            {
                icrafting.sendProgressBarUpdate(this, 2, this.alabasterOven.currentItemBurnTime);
            }
          
        }
        this.lastCookTime = this.alabasterOven.cookTime;
        this.lastBurnTime = this.alabasterOven.burnTime;
        this.lastCurrentItemBurnTime = this.alabasterOven.currentItemBurnTime;
    }
  
    @SideOnly(Side.CLIENT)
    public void updateProgressBar(int slot, int newValue) {
      
      
    }
  
  
  
    @Override
    public boolean canInteractWith(EntityPlayer p_75145_1_) {
  
        return true;
    }

  
  
}
Gui:
package com.endienasg.gui;

import com.endienasg.shinkansen.Main;
import com.endienasg.tileentity.TileEntityAlabasterOven;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;

import com.endienasg.container.ContainerAlabasterOven;

public class GuiAlabasterOven extends GuiContainer{

    public static final ResourceLocation texture = new ResourceLocation(Main.MODID + ":" +  "textures/gui/GuiAlabaserOven.png");
  
  
    public TileEntityAlabasterOven alabasterOven;
  
    public GuiAlabasterOven(InventoryPlayer inventoryPlayer,TileEntityAlabasterOven entity) {
        super(new ContainerAlabasterOven(inventoryPlayer, entity));
      
        this.alabasterOven = entity;
      
        this.xSize = 176;
        this.ySize = 166;
    }

  
  


  





    public void drawGuiContainerForegroundLayer(int par1, int par2) {
        String name = this.alabasterOven.hasCustomInventoryName() ? this.alabasterOven.getInventoryName() : I18n.format(this.alabasterOven.getInventoryName(), new Object[0]);
      
        this.fontRendererObj.drawString(name, this.xSize / 2 - this .fontRendererObj.getStringWidth(name)/2,6, 4210752);
        this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 128, this.ySize - 96 + 2, 4210752);
      
      
    }
  
  
  
    @Override
    protected void drawGuiContainerBackgroundLayer(float var1,int var2,int var3) {
        GL11.glColor4f(1F, 1F, 1F, 1F);
      
        Minecraft.getMinecraft().getTextureManager().bindTexture(texture);
        drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
    }
}
Gui Handler:
package com.endienasg.handler;

import com.endienasg.container.ContainerAlabasterOven;
import com.endienasg.gui.GuiAlabasterOven;
import com.endienasg.shinkansen.Main;
import com.endienasg.tileentity.TileEntityAlabasterOven;

import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

public class GuiHandler implements IGuiHandler{

    @Override
    public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
        // TODO Auto-generated method stub
TileEntity entity = world.getTileEntity(x, y, z);
      
        if(entity != null)
        {
            switch(ID)
            {
            case Main.guiIDAlabasterOven:
                if(entity instanceof TileEntityAlabasterOven)
                {
                    return new ContainerAlabasterOven(player.inventory,(TileEntityAlabasterOven)entity);
                }
                return null;
            }
        }
        return null;
      
    }

    @Override
    public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
        TileEntity entity = world.getTileEntity(x, y, z);
      
        if(entity != null)
        {
            switch(ID)
            {
            case Main.guiIDAlabasterOven:
                if(entity instanceof TileEntityAlabasterOven)
                {
                    return new GuiAlabasterOven(player.inventory,(TileEntityAlabasterOven)entity);
                }
                return null;
            }
        }
        return null;
    }

}
Main:
package com.endienasg.shinkansen;

import javax.swing.text.html.parser.Entity;

import com.endienasg.handler.GuiHandler;
import com.endienasg.proxy.CommonProxy;
import com.endienasg.tileentity.TileEntityAlabasterOven;
import cpw.mods.fml.client.registry.RenderingRegistry;
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.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityList;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.world.WorldType;
import net.minecraftforge.common.util.EnumHelper;


@Mod(modid = Main.MODID, name = Main.MODNAME,version = Main.VERSION)

public class Main {
    //proxy-связь;
    @Mod.Instance("com.endienasg.shinkansen.Main")
    public static com.endienasg.shinkansen.Main instance;
    @SidedProxy(clientSide = "com.endienasg.proxy.ClientProxy", serverSide = "com.endienasg.proxy.CommonProxy")
    public static CommonProxy proxy;

  
  
  
    //creative Tab
        public static final CreativeTabs tabshinkansenMod = new CreativeTabs("tabshinkansenMod"){
        public Item getTabIconItem() {
            return Item.getItemFromBlock(Blocks.command_block);
          
          
        }
    };
    //info
    public static final String MODID = "shinkansen";
    public static final String MODNAME = "shinkansen Mod";
    public static final String VERSION = "0.1.0";
  
  
  
  
    //Armor
    public static Item helmetsoul;
  
    public static Item platesoul;
  
    public static Item legssoul;
  
    public static Item bootssoul;
  

    //block
    public static Block pipe;
    public static Block wood;
  
    //machines
    public static Block blockAlabasterOvenIdle;
    public static Block blockAlabasterOvenActive;
    public static final int guiIDAlabasterOven = 0;
  
    //item
    public static Item MyPickaxe;
    public static Item Myaxe;
    public static Item MyShovel;
    public static Item MyZanpakto;
    public static Item MyZan2;
  
    //resource
    public static Item soulingot;
    public static Item soul1;
    //toolmaterial
    public static ToolMaterial soul = EnumHelper.addToolMaterial("soul", 4, 3000, 20.0F, 5.0F, 30);
    public static ToolMaterial empty_soul = EnumHelper.addToolMaterial("empty_soul", 4, 3000, 20.0F, 5.0F, 30);
    public static ToolMaterial steel = EnumHelper.addToolMaterial("steel", 3,700, 10.0F, 25, 0);
    public static ToolMaterial soulsteel = EnumHelper.addToolMaterial("soulsteel", 3,800, 10.0F, 250, 0);
    //armour material
    public static final  ArmorMaterial ArmorMaterialsoul = EnumHelper.addArmorMaterial("soul", 5000, new int[] {50,100,80,40}, 10);
  
  
    //food
    public static ItemFood Semki;
    public static ItemFood PackofSemki;
  
    //Mob|entity{
    //gop
    public static void registerEntity(Class entityClass, String name, int primaryColor, int secondaryColor)
    {
      int entityID = EntityRegistry.findGlobalUniqueEntityId();
      long seed = name.hashCode();

      EntityRegistry.registerGlobalEntityID(entityClass, name, entityID);
    
      EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, primaryColor, secondaryColor));
    }
  
  
    //}
  
  
  
    @EventHandler
    public void preLoad(FMLPreInitializationEvent event)
    {
        System.out.println("Я тут");
        //entity_load
        registerEntity(Gop.class, "Gop", 0x00FFFF, 0x00008B);
        //Rendera_rmor
      
      
      
        //block
        pipe = new BlockTut(Material.iron, "pipe", "iron");
        wood = new BlockWood(Material.wood, "wood", "wood");
        //machines
        blockAlabasterOvenIdle = new AlabasterOven(false).setBlockName("AlabasterOvenIdle").setCreativeTab(tabshinkansenMod);
        blockAlabasterOvenActive = new AlabasterOven(true).setBlockName("AlabasterOvenIdle").setCreativeTab(tabshinkansenMod).setLightLevel(0.625F);
      
        //item
        MyPickaxe = new MyPickaxe()
        .setUnlocalizedName("MyPickaxe");
      
        Myaxe = new Myaxe()
        .setUnlocalizedName("Myaxe");
      
        MyShovel = new MyShovel()
        .setUnlocalizedName("MyShovel");
      
        MyZanpakto = new MyZanpakto()
        .setUnlocalizedName("Zanpakto");
      
      
      
        MyZan2 = new MyZan2()
        .setUnlocalizedName("Zan2");
      
      
      
      
      

      
        proxy.registerRenderers();
      
      
        //food
        Semki = (ItemFood) new Semki(10, false)
        .setUnlocalizedName("Semki");
        PackofSemki = (ItemFood) new PackofSemki(20, false)
        .setUnlocalizedName("PackofSemki");
        //armor
        helmetsoul = new ItemSoulArmour(ArmorMaterialsoul,  0 , 0).setTextureName("shinkansen:helmetsoul").setUnlocalizedName("ItemSoulHelmet").setCreativeTab(tabshinkansenMod);
        platesoul = new ItemSoulArmour(ArmorMaterialsoul,  0 , 1).setTextureName("shinkansen:platesoul").setUnlocalizedName("ItemSoulPlate").setCreativeTab(tabshinkansenMod);
        legssoul = new ItemSoulArmour(ArmorMaterialsoul,  0 , 2).setTextureName("shinkansen:legssoul").setUnlocalizedName("ItemSoulLegs").setCreativeTab(tabshinkansenMod);
        bootssoul = new ItemSoulArmour(ArmorMaterialsoul,  0 , 3).setTextureName("shinkansen:bootssoul").setUnlocalizedName("ItemSoulBoots").setCreativeTab(tabshinkansenMod);

        //GameRegistry.registerItem
        GameRegistry.registerItem( MyShovel, "SilverShovel");
        GameRegistry.registerItem( Myaxe, "Silveraxe");
        GameRegistry.registerItem( MyPickaxe, "SilverPickaxe");
        GameRegistry.registerItem( MyZanpakto, "Zanpakto");
        GameRegistry.registerItem( MyZan2, "Zan2");
        GameRegistry.registerItem(Semki, "Semki");
        GameRegistry.registerItem(PackofSemki, "PackofSemki");
        GameRegistry.registerItem(soulingot, "soulingot");
        GameRegistry.registerItem(soul1, "soul1");
      
        GameRegistry.registerItem(helmetsoul, "helmetsoul");
        GameRegistry.registerItem(platesoul, "platesoul");
        GameRegistry.registerItem(legssoul, "legssoul");
        GameRegistry.registerItem(bootssoul, "bootssoul");

      
      
      
        //machines
        //GameRegistry.registerBlock(blockAlabasterOvenIdle, blockAlabasterOvenIdle);
        GameRegistry.registerBlock(blockAlabasterOvenIdle, "blockAlabasterOvenIdle");
        GameRegistry.registerBlock(blockAlabasterOvenActive, "blockAlabasterOvenActive");
    }
  
  
  
  
  
  
  
  
    @EventHandler
    public void Load(FMLInitializationEvent event)
    {
      
        GameRegistry.registerTileEntity(TileEntityAlabasterOven.class, "AlabasterOven");
        NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
      

      

      
      
      
  
          
      
      
      
    }
  
  
    @EventHandler
    public void postLoad(FMLPostInitializationEvent event)
    {
      
      
      
      
              
    GameRegistry.addRecipe(new ItemStack(Main.MyPickaxe, 1),
              
              
                new Object[]{
                    "X#X",
                    " Y ",
                    " X ",
                  
                    ('X'),Blocks.diamond_block,
                    ('#'),Items.nether_star,
                    ('Y'),Items.golden_apple
                  
    });
    //soul_armor
  
    GameRegistry.addRecipe(new ItemStack(Main.helmetsoul,1),
                    new Object[]{
                        "YZY",
                        "YXY",
                        "",
                      
                        ('X'),Items.nether_star,
                        ('Y'),Main.soulingot,
                        ('Z'),Main.soul
  
  
    });
  
    //FurnaceRecipies
  
    //GameRegistry.addSmelting(Main.pipe,new ItemStack(Main.soul), 50);
  
  
    //end_of_repice 
    }
  
}
 
Краш-лог
---- Minecraft Crash Report ----
// Why did you do that?

Time: 19.10.20 17:18
Description: Initializing game

java.lang.NullPointerException: Can't add null-object to the registry, name shinkansen:soulingot.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at com.endienasg.shinkansen.Main.preLoad(Main.java:184)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at com.endienasg.shinkansen.Main.preLoad(Main.java:184)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_261, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 595034536 bytes (567 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
UCH Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
UCE shinkansen{0.1.0} [shinkansen Mod] (bin)
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 451.48' Renderer: 'GeForce GTX 1660 SUPER/PCIe/SSE2'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 451.48, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
Краш-лог:
---- Minecraft Crash Report ----
// Why did you do that?

Time: 19.10.20 17:18
Description: Initializing game

java.lang.NullPointerException: Can't add null-object to the registry, name shinkansen:soulingot.
	at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
	at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849)
	at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812)
	at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
	at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
	at com.endienasg.shinkansen.Main.preLoad(Main.java:184)
	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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
	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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
	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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
	at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
	at net.minecraft.client.Minecraft.run(Minecraft.java:942)
	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:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)


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

-- Head --
Stacktrace:
	at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:384)
	at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849)
	at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812)
	at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
	at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
	at com.endienasg.shinkansen.Main.preLoad(Main.java:184)
	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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
	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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
	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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
	at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

-- Initialization --
Details:
Stacktrace:
	at net.minecraft.client.Minecraft.run(Minecraft.java:942)
	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:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.7.10
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_261, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 595034536 bytes (567 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCH	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
	UCH	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
	UCH	Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
	UCE	shinkansen{0.1.0} [shinkansen Mod] (bin) 
	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 451.48' Renderer: 'GeForce GTX 1660 SUPER/PCIe/SSE2'
	Launched Version: 1.7.10
	LWJGL: 2.9.1
	OpenGL: GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 451.48, NVIDIA Corporation
	GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

	Is Modded: Definitely; Client brand changed to 'fml,forge'
	Type: Client (map_client.txt)
	Resource Packs: []
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	Anisotropic Filtering: Off (1)
Последнее редактирование:
1,057
50
234
public static Item soulingot;
у тебя переменная = null, и ты пытаешься ее зарегать в итемах.
 
31
1
1
Tileentity:
package com.endienasg.tileentity;

import com.endienasg.shinkansen.AlabasterOven;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.tileentity.TileEntity;

public class TileEntityAlabasterOven extends TileEntity implements ISidedInventory {

    private String localizedName;
    
    
    
    private static final int[] slots_top = new int[] {0};
    private static final int[] slots_bottom = new int[] {2, 1};
    private static final int[] slots_side = new int[] {1};
    
    private ItemStack[] slots = new ItemStack[3];
    public int furnaceSpeed = 150;
    public int burnTime;
    public int currentItemBurnTime;
    public int cookTime;
    
    public void setGuiDisplayName(String displayName) {

        this.localizedName = displayName;
    }

    public String getInventoryName()
    {
        return this.hasCustomInventoryName() ? this.localizedName : "container.alabasterOven";
    }

    public boolean hasCustomInventoryName() {
        return this.localizedName != null && this.localizedName.length() > 0;
    }
    public int geSizeInventory() {
        return this.slots.length;
        
        
    }

    @Override
    public int getSizeInventory() {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public ItemStack getStackInSlot(int var1) {
        return this.slots[var1];
        
        
    }

    @Override
    public ItemStack decrStackSize(int var1, int var2) {
        if(this.slots[var1] != null){
            ItemStack itemstack;
            
            if(this.slots[var1].stackSize <= var2)
            {
                itemstack = this.slots[var1];
                this.slots[var1] = null;
                return itemstack;
            }else {
                itemstack = this.slots[var1].splitStack(var2);
                
                if(this.slots[var1].stackSize == 0)
                {
                    this.slots[var1] = null;
                }
            }
        }
        return null;
    }

    @Override
    public ItemStack getStackInSlotOnClosing(int i) {
        if(this.slots[i] !=null)
        {
            ItemStack itemstack = this.slots[i];
            this.slots[i] = null;
            return itemstack;
        }
        return null;
    }

    @Override
    public void setInventorySlotContents(int i, ItemStack itemstack) {
        this.slots[i] = itemstack;
        if(itemstack != null && itemstack.stackSize > this.getInventoryStackLimit())
        {
            itemstack.stackSize = this.getInventoryStackLimit();
;        }
        
    }

    

    @Override
    public int getInventoryStackLimit() {
        // TODO Auto-generated method stub
        return 64;
    }

    @Override
    public boolean isUseableByPlayer(EntityPlayer entityplayer) {
        
        return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false: entityplayer.getDistanceSq((double)this.xCoord + 0.5D,(double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;
        
    }

    public void openInventory() {}
    public void closeInventory() {}
    
    

    @Override
    public boolean isItemValidForSlot(int i, ItemStack itemstack) {
        
        return i == 2 ? false: (i == 1 ? isItemFuel(itemstack) : true);
    }
    public static boolean isItemFuel(ItemStack itemstack)
    {
        return getItemBurnTime(itemstack) > 0;
    }

    private static int getItemBurnTime(ItemStack itemstack) {
        if(itemstack == null)
        {
            return 0;
        }else {
            Item item = itemstack.getItem();
            
            if(item instanceof ItemBlock && Block.getBlockFromItem(item) != Blocks.air)
            {
                Block block = Block.getBlockFromItem(item);
                
                if(item == Items.coal) return 1600;
                if(block == Blocks.coal_block) return 14400;
                if(item == Items.lava_bucket) return 20000;
                if(item == Items.blaze_rod) return 2400;
                if(item == Items.blaze_powder) return 1200;
                
                return GameRegistry.getFuelValue(itemstack);


            }
        }
        return 0;
        
    }
    public Boolean isBurning()
    {
        return this.burnTime > 0;
    }
    
    public void updateEntity()
    {
        boolean flag = this.burnTime > 0;
        boolean flag1 = false;
        
        if(this.isBurning())
        {
            this.burnTime--;
        }
        if(!this.worldObj.isRemote)
        {
            if(this.burnTime == 0 && this.canSmelt())
            {
                this.currentItemBurnTime = this.burnTime = getItemBurnTime(this.slots[1]);
                
                if(this.isBurning())
                {
                    flag1 = true;
                    if(this.slots[1] != null)
                    {
                        this.slots[1].stackSize--;
                        
                        if(this.slots[1].stackSize == 0)
                        {
                            this.slots[1] = this.slots[1].getItem().getContainerItem(this.slots[1]);
                        }
                    }
                }
            }
        
            if(this.isBurning() && this.canSmelt())
            {
                this.cookTime++;
            
                if(this.cookTime == this.furnaceSpeed)
                {
                    this.cookTime = 0;
                    this.smeltItem();
                    flag1 = true;
                }       
            }else {
                this.cookTime = 0;
            }
            if (flag != this.isBurning())
            {
                flag1 = true;
                AlabasterOven.updateAlabasterOvenBlockState(this.burnTime > 0, this.worldObj,this.xCoord,this.yCoord,this.zCoord);
            }
        }
        if(flag1)
        {
            this.markDirty();
        }
    }
    
    public boolean canSmelt()
    {
        if(this.slots[0] == null)
        {
            return false;
        }else {
            ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.slots[0]);

            if(itemstack == null) return false;
            if(this.slots[2] == null) return true;
            if(!this.slots[2].isItemEqual(itemstack)) return false;
            
            int result = this.slots[2].stackSize + itemstack.stackSize;
            
            return(result <= getInventoryStackLimit() && result <= itemstack.getMaxStackSize());
            
        }
    }
    
    public void smeltItem()
    {
        if(this.canSmelt())
        {
             ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.slots[0]);
    

            if(this.slots[2] == null)
            {
                this.slots[2] = itemstack.copy();
            }else  if(this.slots[2].isItemEqual(itemstack)){
                this.slots[2].stackSize += itemstack.stackSize;
            }
            
            this.slots[2].stackSize--;
            
            if(this.slots[0].stackSize <= 0)
            {
                this.slots[0] = null;
            }
            
        
        }
    }
    

    @Override
    public int[] getAccessibleSlotsFromSide(int var1) {
        
        return var1 == 0 ? slots_bottom: (var1 == 1 ? slots_top : slots_side);
    }

    @Override
    public boolean canInsertItem(int i, ItemStack itemstack, int var3) {
        
        return this.isItemValidForSlot(i, itemstack);
    }

    @Override
    public boolean canExtractItem(int i, ItemStack itemstack, int j) {
        
        return j != 0 || i != 1 || itemstack.getItem() == Items.bucket;
    }
    
}
 
31
1
1
Сам блок:
package com.endienasg.shinkansen;



import com.endienasg.tileentity.TileEntityAlabasterOven;

import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class AlabasterOven extends BlockContainer{

    private final boolean isActive;
    
    @SideOnly(Side.CLIENT)
    private IIcon  iconFront;
    
    @SideOnly(Side.CLIENT)
    private IIcon iconTop;
    
    private static boolean keepInventory;
    
    public AlabasterOven(boolean isActive) {
        super(Material.iron);
        
        this.isActive = isActive;
    }

    @SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister iconRegister) {
        
        this.blockIcon  = iconRegister.registerIcon(Main.MODID + ":" + "AlabasterOvenSide");
        this.iconFront = iconRegister.registerIcon(Main.MODID + ":" + (this.isActive ? "AlabasterOvenFrontOn" : "AlabasterOvenFrontOff"));
        this.iconTop = iconRegister.registerIcon(Main.MODID + ":" + "AlabasterOvenTop");
    }
    
    @SideOnly(Side.CLIENT)
    public IIcon getIcon(int side, int metadata)
    {
        return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : (side != metadata ? this.blockIcon: this.iconFront ));
    }
    
    
    
    public Item getItemDropped(World world, int x,int y,int z)
    {
        return Item.getItemFromBlock(Main.blockAlabasterOvenIdle);
    }
    
    public void onBlockAdded(World world,int x , int y, int z)
    {
    super.onBlockAdded(world, x, y, z);   
    this.setDefaultDirection(world,x,y,z);
    }
    
    
    
    
    private void setDefaultDirection(World world, int x, int y, int z) {
        if(!world.isRemote)
        {
            Block b1 = world.getBlock(x, y, z - 1 );
            Block b2 = world.getBlock(x,y,z + 1);
            Block b3 = world.getBlock(x - 1,y,z);
            Block b4 = world.getBlock(x + 1, y, z);
            byte b0 = 3;
            
            if(b1.func_149730_j() && !b2.func_149730_j())
            {
                b0 = 3;
                
            }
            if(b2.func_149730_j() && !b1.func_149730_j())
            {
                b0 = 2;
                
            }
            if(b3.func_149730_j() && !b4.func_149730_j())
            {
                b0 = 5;
                
            }
            if(b4.func_149730_j() && !b3.func_149730_j())
            {
                b0 = 4;
                
            }
            
            world.setBlockMetadataWithNotify(x, y, z, b0, 2);
            
        }
        
    }

    //TODO onBlockActivated
    
    
    public boolean onBlockActivated(World world, int x, int y, int z,
            EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
        
    if(!world.isRemote)
    {
        FMLNetworkHandler.openGui(player, Main.instance, Main.guiIDAlabasterOven, world, x, y, z);
    }
    return true;
    }
    
    
    
    @Override
    public TileEntity createNewTileEntity(World world, int i) {
        return new TileEntityAlabasterOven();
        
        
    }
    
    //TODO randomDisplayTick
    
    
    
    public void onBlockPlacedBy(World world,int x,int y,int z,EntityLivingBase entityplayer,ItemStack itemstack)
    {
        int l = MathHelper.floor_double((double)(entityplayer.rotationYaw * 4.0F/360.F) + 0.5D) & 3;
    
        if(l == 0)
        {
            world.setBlockMetadataWithNotify(x, y, z, 2, 2);
        }
        if(l == 1)
        {
            world.setBlockMetadataWithNotify(x, y, z, 5, 2);
        }
        if(l == 2)
        {
            world.setBlockMetadataWithNotify(x, y, z, 3, 2);
        }
        if(l == 3)
        {
            world.setBlockMetadataWithNotify(x, y, z, 4, 2);
        }
        
        if(itemstack.hasDisplayName())
        {
             ((TileEntityAlabasterOven)world.getTileEntity(x,y,z)).setGuiDisplayName(itemstack.getDisplayName());
        }
    }

    public static void updateAlabasterOvenBlockState(boolean active, World worldObj, int xCoord, int yCoord, int zCoord) {
        
        int i = worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
        
        TileEntity tileentity = worldObj.getTileEntity(xCoord, yCoord, zCoord);
        keepInventory = true;
        
        if(active)
        {
            worldObj.setBlock(xCoord, yCoord, zCoord, Main.blockAlabasterOvenActive);
        }else {
            worldObj.setBlock(xCoord, yCoord, zCoord, Main.blockAlabasterOvenIdle);
        }
        
        keepInventory = false;
        
        worldObj.setBlockMetadataWithNotify(xCoord, zCoord, zCoord, i, 2);
        
        if(tileentity != null)
        {
            tileentity.validate();
            worldObj.setTileEntity(xCoord, yCoord, zCoord,tileentity);
        }
        
        
    }
    
    
}
 
1,057
50
234
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
продебаж вот так:
Код:
 if(entity != null)
        {
            System.out.println('Entity != null');
            switch(ID)
            {
            case Main.guiIDAlabasterOven: 
                if(entity instanceof TileEntityAlabasterOven)
                {
                    System.out.println('entity is need tile');
                    return new GuiAlabasterOven(player.inventory,(TileEntityAlabasterOven)entity);
                }
                return null;
            }
        }
 

VeniVidiVici

Санта Барбарис
327
15
198
это я в Печь пишу? (блок?0
Ты бы хотя бы внимательнее смотрел код, который копируешь. Вопросов стало бы на 50% меньше.


public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
продебаж вот так:
 
Сверху