- 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)
Последнее редактирование: