Jump to content

[1.7.10]Help when i right click my custom crafting table it crashes directly


Bacuse

Recommended Posts

Help when i right click my custom crafting table it crashes directly

 

crash report:

 

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 3/28/16 11:10 PM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)

at mimohad.helpfulmod.craftingtable.HelpFulTable.onBlockActivated(HelpFulTable.java:18)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2044)

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)

at mimohad.helpfulmod.craftingtable.HelpFulTable.onBlockActivated(HelpFulTable.java:18)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player378'/291, l='MpServer', x=-19.52, y=64.62, z=193.67]]

Chunk stats: MultiplayerChunkCache: 602, 602

Level seed: 0

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

Level generator options:

Level spawn location: World: (12,64,256), Chunk: (at 12,4,0 in 0,16; contains blocks 0,0,256 to 15,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 598967 game time, 1152 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

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

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

Forced entities: 71 total; [EntityHagresorus['Hagresorus'/129, l='MpServer', x=-17.03, y=63.00, z=201.97], EntityBat['Bat'/128, l='MpServer', x=-27.50, y=55.10, z=202.53], EntityBat['Bat'/131, l='MpServer', x=-25.50, y=59.10, z=219.25], EntityBat['Bat'/130, l='MpServer', x=-25.00, y=58.10, z=218.78], EntityBat['Bat'/133, l='MpServer', x=-26.34, y=58.10, z=219.34], EntityBat['Bat'/132, l='MpServer', x=-24.41, y=58.10, z=210.91], EntityBat['Bat'/134, l='MpServer', x=-23.50, y=58.10, z=217.75], EntityHagresorus['Hagresorus'/152, l='MpServer', x=-11.97, y=64.00, z=205.03], EntityHagresorus['Hagresorus'/153, l='MpServer', x=-4.97, y=65.00, z=219.97], EntityPig['Pig'/148, l='MpServer', x=-2.03, y=64.00, z=156.03], EntityCreeper['Creeper'/149, l='MpServer', x=-4.00, y=63.00, z=158.50], EntityBat['Bat'/31, l='MpServer', x=-99.16, y=46.10, z=162.53], EntityBat['Bat'/150, l='MpServer', x=0.71, y=41.26, z=175.47], EntityBat['Bat'/151, l='MpServer', x=-0.75, y=42.10, z=177.50], EntitySkeleton['Skeleton'/35, l='MpServer', x=-98.50, y=51.00, z=269.50], EntityBat['Bat'/38, l='MpServer', x=-92.00, y=47.10, z=157.44], EntityBat['Bat'/39, l='MpServer', x=-97.35, y=46.79, z=162.33], EntityWitch['Witch'/36, l='MpServer', x=-98.50, y=69.00, z=269.50], EntityZombie['Zombie'/42, l='MpServer', x=-93.50, y=20.00, z=246.50], EntityWitch['Witch'/43, l='MpServer', x=-93.50, y=20.00, z=245.50], EntityCreeper['Creeper'/40, l='MpServer', x=-97.93, y=29.00, z=212.28], EntityZombie['Zombie'/41, l='MpServer', x=-90.50, y=20.00, z=246.50], EntityCreeper['Creeper'/167, l='MpServer', x=8.50, y=23.00, z=231.50], EntityBat['Bat'/166, l='MpServer', x=3.25, y=38.22, z=176.25], EntityZombie['Zombie'/165, l='MpServer', x=7.00, y=65.00, z=144.44], EntitySkeleton['Skeleton'/44, l='MpServer', x=-88.09, y=68.00, z=270.47], EntityPig['Pig'/164, l='MpServer', x=8.47, y=66.00, z=133.13], EntitySkeleton['Skeleton'/45, l='MpServer', x=-80.50, y=69.00, z=266.88], EntitySkeleton['Skeleton'/50, l='MpServer', x=-79.50, y=68.00, z=270.50], EntitySkeleton['Skeleton'/184, l='MpServer', x=20.56, y=24.00, z=232.50], EntityWitch['Witch'/49, l='MpServer', x=-71.38, y=70.00, z=172.94], EntitySkeleton['Skeleton'/59, l='MpServer', x=-61.50, y=21.00, z=190.50], EntityPig['Pig'/178, l='MpServer', x=25.13, y=81.00, z=146.94], EntityZombie['Zombie'/179, l='MpServer', x=19.50, y=11.00, z=162.50], EntitySquid['Squid'/177, l='MpServer', x=25.50, y=61.00, z=132.50], EntityZombie['Zombie'/63, l='MpServer', x=-53.00, y=64.00, z=187.56], EntityCreeper['Creeper'/62, l='MpServer', x=-57.69, y=19.00, z=188.69], EntityBat['Bat'/183, l='MpServer', x=15.07, y=14.78, z=212.51], EntityCreeper['Creeper'/61, l='MpServer', x=-57.72, y=19.00, z=187.69], EntityPig['Pig'/180, l='MpServer', x=20.31, y=65.00, z=164.50], EntityCreeper['Creeper'/60, l='MpServer', x=-58.70, y=19.00, z=187.30], EntitySlime['Slime'/181, l='MpServer', x=20.31, y=36.00, z=180.38], EntityCow['Cow'/205, l='MpServer', x=55.22, y=67.00, z=153.22], EntityPig['Pig'/207, l='MpServer', x=57.94, y=63.00, z=182.94], EntityZombie['Zombie'/206, l='MpServer', x=53.50, y=29.00, z=187.50], EntityZombie['Zombie'/64, l='MpServer', x=-47.88, y=66.00, z=203.69], EntitySkeleton['Skeleton'/201, l='MpServer', x=36.50, y=18.00, z=222.50], EntityCreeper['Creeper'/200, l='MpServer', x=47.50, y=56.00, z=183.50], EntityClientPlayerMP['Player378'/291, l='MpServer', x=-19.52, y=64.62, z=193.67], EntityZombie['Zombie'/197, l='MpServer', x=38.59, y=59.00, z=153.00], EntitySkeleton['Skeleton'/196, l='MpServer', x=37.50, y=59.00, z=153.88], EntityBat['Bat'/199, l='MpServer', x=43.69, y=29.10, z=185.63], EntityCreeper['Creeper'/198, l='MpServer', x=45.50, y=29.00, z=188.50], EntitySquid['Squid'/195, l='MpServer', x=32.50, y=61.38, z=136.50], EntityPig['Pig'/194, l='MpServer', x=43.50, y=67.00, z=127.31], EntitySlime['Slime'/87, l='MpServer', x=-45.69, y=25.00, z=153.69], EntityZombie['Zombie'/208, l='MpServer', x=60.56, y=24.00, z=199.88], EntitySkeleton['Skeleton'/89, l='MpServer', x=-37.44, y=63.00, z=185.21], EntityCreeper['Creeper'/88, l='MpServer', x=-43.00, y=64.00, z=190.53], EntitySkeleton['Skeleton'/211, l='MpServer', x=59.50, y=28.00, z=248.50], EntityZombie['Zombie'/111, l='MpServer', x=-29.50, y=15.00, z=115.50], EntitySkeleton['Skeleton'/114, l='MpServer', x=-31.50, y=35.00, z=116.50], EntitySpider['Spider'/113, l='MpServer', x=-25.97, y=16.00, z=117.72], EntitySkeleton['Skeleton'/112, l='MpServer', x=-17.31, y=17.00, z=115.28], EntityBat['Bat'/127, l='MpServer', x=-28.25, y=57.10, z=204.50], EntitySquid['Squid'/126, l='MpServer', x=-17.78, y=61.31, z=131.16], EntitySquid['Squid'/125, l='MpServer', x=-12.03, y=61.09, z=133.53], EntitySquid['Squid'/124, l='MpServer', x=-20.69, y=61.25, z=135.75], EntitySquid['Squid'/123, l='MpServer', x=-23.81, y=61.34, z=134.97], EntitySquid['Squid'/122, l='MpServer', x=-23.41, y=61.00, z=138.91], EntitySquid['Squid'/121, l='MpServer', x=-19.03, y=61.34, z=133.94]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

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

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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)

Link to comment
Share on other sites

Include your block code.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Container Class

package mimohad.helpfulmod.craftingtable.container;

 

import mimohad.helpfulmod.HelpFulMod;

import mimohad.helpfulmod.craftingtable.craftingmanager.HelpFulTableCraftingManager;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.entity.player.InventoryPlayer;

import net.minecraft.inventory.Container;

import net.minecraft.inventory.IInventory;

import net.minecraft.inventory.InventoryCraftResult;

import net.minecraft.inventory.InventoryCrafting;

import net.minecraft.inventory.Slot;

import net.minecraft.inventory.SlotCrafting;

import net.minecraft.item.ItemStack;

import net.minecraft.world.World;

 

public class ContainerHelpFulTable extends Container {

 

public InventoryCrafting craftMatrix;

public IInventory craftResult;

private World worldObj;

private int posX;

private int posY;

private int posZ;

 

 

public ContainerHelpFulTable(InventoryPlayer invPlayer, World world, int x, int y, int z) {

craftMatrix = new InventoryCrafting(this, 5, 5);

craftResult = new InventoryCraftResult();

worldObj = world;

posX = x;

posY = y;

posZ = z;

 

this.addSlotToContainer(new SlotCrafting(invPlayer.player, craftMatrix, craftResult, 0, 131, 36));

 

for (int i = 0; i < 5; i++) {

for (int k = 0; k < 5; k++) {

this.addSlotToContainer(new Slot(craftMatrix, k + i * 5, 4 + k * 18, 3 + i * 18));

 

}

 

}

 

for (int i = 0; i < 3; i++) {

for (int k = 0; k < 9; k++) {

this.addSlotToContainer(new Slot(invPlayer, k - i * 9 + 9, 8 + k * 15, 94 + i * 18));

 

}

}

 

for (int i = 0; i < 9; i++) {

this.addSlotToContainer(new Slot(invPlayer, i, 8 + i * 18, 148));

}

 

onCraftMatrixChanged(craftMatrix);

}

 

public void onCraftMatrixChanged(IInventory iinventory) {

//craftMatrix.setInventorySlotContents(0, HelpFulTableCraftingManager.getInstance().findMatchingRecipe(craftMatrix, worldObj));

}

 

@Override

public boolean canInteractWith(EntityPlayer player) {

if(worldObj.getBlock(posX, posY, posZ) != HelpFulMod.HelpFulTable) {

return false;

} else {

return player.getDistanceSq((double)posX + 0.5D, (double)posY + 0.5D, (double)posZ + 0.5D) <= 64.0D;

}

}

 

public void onContainerClosed(EntityPlayer p_75134_1_)

    {

        super.onContainerClosed(p_75134_1_);

 

        if (!this.worldObj.isRemote)

        {

            for (int i = 0; i < 9; ++i)

            {

                ItemStack itemstack = this.craftMatrix.getStackInSlotOnClosing(i);

 

                if (itemstack != null)

                {

                    p_75134_1_.dropPlayerItemWithRandomChoice(itemstack, false);

                }

            }

        }

    }

 

public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)

    {

        ItemStack itemstack = null;

        Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);

 

        if (slot != null && slot.getHasStack())

        {

            ItemStack itemstack1 = slot.getStack();

            itemstack = itemstack1.copy();

 

            if (p_82846_2_ == 0)

            {

                if (!this.mergeItemStack(itemstack1, 10, 46, true))

                {

                    return null;

                }

 

                slot.onSlotChange(itemstack1, itemstack);

            }

            else if (p_82846_2_ >= 10 && p_82846_2_ < 37)

            {

                if (!this.mergeItemStack(itemstack1, 37, 46, false))

                {

                    return null;

                }

            }

            else if (p_82846_2_ >= 37 && p_82846_2_ < 46)

            {

                if (!this.mergeItemStack(itemstack1, 10, 37, false))

                {

                    return null;

                }

            }

            else if (!this.mergeItemStack(itemstack1, 10, 46, false))

            {

                return null;

            }

 

            if (itemstack1.stackSize == 0)

            {

                slot.putStack((ItemStack)null);

            }

            else

            {

                slot.onSlotChanged();

            }

 

            if (itemstack1.stackSize == itemstack.stackSize)

            {

                return null;

            }

 

            slot.onPickupFromSlot(p_82846_1_, itemstack1);

        }

 

        return itemstack;

    }

 

}

 

Link to comment
Share on other sites

Block Class

 

package mimohad.helpfulmod.craftingtable;

 

import mimohad.helpfulmod.HelpFulMod;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

 

public class HelpFulTable extends Block {

 

public HelpFulTable() {

super(Material.wood);

}

 

public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int q, float a, float b, float c) {

 

if (!player.isSneaking()) {

player.openGui(HelpFulMod.modInstance, HelpFulMod.guiIDHelpFulTable, world, x, y, z);

return true;

} else {

return false;

 

}

}

 

}

 

Link to comment
Share on other sites

Include your block code.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

i put it up there

 

Sorry, you posted one thing which wasn't what I asked for before you posted the thing I did ask for.

 

Anyway, how about your gui handler?

 

$5 says you don't have one or its not properly registered.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Its ok here it is

 

package mimohad.helpfulmod;

 

import mimohad.helpfulmod.craftingtable.container.ContainerHelpFulTable;

import mimohad.helpfulmod.craftingtable.gui.GuiHelpFulTable;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.IGuiHandler;

 

 

 

public class GuiHandler implements IGuiHandler {

 

@Override

public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {

 

if(ID == HelpFulMod.guiIDHelpFulTable)

return ID == HelpFulMod.guiIDHelpFulTable && world.getBlock(x, y, z) == HelpFulMod.HelpFulTable ? new ContainerHelpFulTable(player.inventory, world, x, y, z) : null;

 

 

return null;

}

 

@Override

public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {

 

if(ID == HelpFulMod.guiIDHelpFulTable)

return ID == HelpFulMod.guiIDHelpFulTable && world.getBlock(x, y, z) == HelpFulMod.HelpFulTable ? new GuiHelpFulTable(player.inventory, world, x, y, z) : null;

 

return null;

 

}

 

}

 

Link to comment
Share on other sites

Well if you didn't return null it might do something useful.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Help when i right click my custom crafting table it crashes me

 

 

GuiHandler

 

package mimohad.helpfulmod;

 

import mimohad.helpfulmod.craftingtable.container.ContainerHelpFulTable;

import mimohad.helpfulmod.craftingtable.gui.GuiHelpFulTable;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.IGuiHandler;

 

 

 

public class GuiHandler implements IGuiHandler {

 

@Override

public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {

 

if(ID == HelpFulMod.guiIDHelpFulTable)

return ID == HelpFulMod.guiIDHelpFulTable && world.getBlock(x, y, z) == HelpFulMod.HelpFulTable ? new ContainerHelpFulTable(player.inventory, world, x, y, z) : null;

 

 

return null;

}

 

@Override

public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {

 

if(ID == HelpFulMod.guiIDHelpFulTable)

return ID == HelpFulMod.guiIDHelpFulTable && world.getBlock(x, y, z) == HelpFulMod.HelpFulTable ? new GuiHelpFulTable(player.inventory, world, x, y, z) : null;

 

return null;

 

}

 

}

 

Link to comment
Share on other sites

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 3/28/16 11:10 PM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)

at mimohad.helpfulmod.craftingtable.HelpFulTable.onBlockActivated(HelpFulTable.java:18)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2044)

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:265)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)

at mimohad.helpfulmod.craftingtable.HelpFulTable.onBlockActivated(HelpFulTable.java:18)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:376)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player378'/291, l='MpServer', x=-19.52, y=64.62, z=193.67]]

Chunk stats: MultiplayerChunkCache: 602, 602

Level seed: 0

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

Level generator options:

Level spawn location: World: (12,64,256), Chunk: (at 12,4,0 in 0,16; contains blocks 0,0,256 to 15,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 598967 game time, 1152 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

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

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

Forced entities: 71 total; [EntityHagresorus['Hagresorus'/129, l='MpServer', x=-17.03, y=63.00, z=201.97], EntityBat['Bat'/128, l='MpServer', x=-27.50, y=55.10, z=202.53], EntityBat['Bat'/131, l='MpServer', x=-25.50, y=59.10, z=219.25], EntityBat['Bat'/130, l='MpServer', x=-25.00, y=58.10, z=218.78], EntityBat['Bat'/133, l='MpServer', x=-26.34, y=58.10, z=219.34], EntityBat['Bat'/132, l='MpServer', x=-24.41, y=58.10, z=210.91], EntityBat['Bat'/134, l='MpServer', x=-23.50, y=58.10, z=217.75], EntityHagresorus['Hagresorus'/152, l='MpServer', x=-11.97, y=64.00, z=205.03], EntityHagresorus['Hagresorus'/153, l='MpServer', x=-4.97, y=65.00, z=219.97], EntityPig['Pig'/148, l='MpServer', x=-2.03, y=64.00, z=156.03], EntityCreeper['Creeper'/149, l='MpServer', x=-4.00, y=63.00, z=158.50], EntityBat['Bat'/31, l='MpServer', x=-99.16, y=46.10, z=162.53], EntityBat['Bat'/150, l='MpServer', x=0.71, y=41.26, z=175.47], EntityBat['Bat'/151, l='MpServer', x=-0.75, y=42.10, z=177.50], EntitySkeleton['Skeleton'/35, l='MpServer', x=-98.50, y=51.00, z=269.50], EntityBat['Bat'/38, l='MpServer', x=-92.00, y=47.10, z=157.44], EntityBat['Bat'/39, l='MpServer', x=-97.35, y=46.79, z=162.33], EntityWitch['Witch'/36, l='MpServer', x=-98.50, y=69.00, z=269.50], EntityZombie['Zombie'/42, l='MpServer', x=-93.50, y=20.00, z=246.50], EntityWitch['Witch'/43, l='MpServer', x=-93.50, y=20.00, z=245.50], EntityCreeper['Creeper'/40, l='MpServer', x=-97.93, y=29.00, z=212.28], EntityZombie['Zombie'/41, l='MpServer', x=-90.50, y=20.00, z=246.50], EntityCreeper['Creeper'/167, l='MpServer', x=8.50, y=23.00, z=231.50], EntityBat['Bat'/166, l='MpServer', x=3.25, y=38.22, z=176.25], EntityZombie['Zombie'/165, l='MpServer', x=7.00, y=65.00, z=144.44], EntitySkeleton['Skeleton'/44, l='MpServer', x=-88.09, y=68.00, z=270.47], EntityPig['Pig'/164, l='MpServer', x=8.47, y=66.00, z=133.13], EntitySkeleton['Skeleton'/45, l='MpServer', x=-80.50, y=69.00, z=266.88], EntitySkeleton['Skeleton'/50, l='MpServer', x=-79.50, y=68.00, z=270.50], EntitySkeleton['Skeleton'/184, l='MpServer', x=20.56, y=24.00, z=232.50], EntityWitch['Witch'/49, l='MpServer', x=-71.38, y=70.00, z=172.94], EntitySkeleton['Skeleton'/59, l='MpServer', x=-61.50, y=21.00, z=190.50], EntityPig['Pig'/178, l='MpServer', x=25.13, y=81.00, z=146.94], EntityZombie['Zombie'/179, l='MpServer', x=19.50, y=11.00, z=162.50], EntitySquid['Squid'/177, l='MpServer', x=25.50, y=61.00, z=132.50], EntityZombie['Zombie'/63, l='MpServer', x=-53.00, y=64.00, z=187.56], EntityCreeper['Creeper'/62, l='MpServer', x=-57.69, y=19.00, z=188.69], EntityBat['Bat'/183, l='MpServer', x=15.07, y=14.78, z=212.51], EntityCreeper['Creeper'/61, l='MpServer', x=-57.72, y=19.00, z=187.69], EntityPig['Pig'/180, l='MpServer', x=20.31, y=65.00, z=164.50], EntityCreeper['Creeper'/60, l='MpServer', x=-58.70, y=19.00, z=187.30], EntitySlime['Slime'/181, l='MpServer', x=20.31, y=36.00, z=180.38], EntityCow['Cow'/205, l='MpServer', x=55.22, y=67.00, z=153.22], EntityPig['Pig'/207, l='MpServer', x=57.94, y=63.00, z=182.94], EntityZombie['Zombie'/206, l='MpServer', x=53.50, y=29.00, z=187.50], EntityZombie['Zombie'/64, l='MpServer', x=-47.88, y=66.00, z=203.69], EntitySkeleton['Skeleton'/201, l='MpServer', x=36.50, y=18.00, z=222.50], EntityCreeper['Creeper'/200, l='MpServer', x=47.50, y=56.00, z=183.50], EntityClientPlayerMP['Player378'/291, l='MpServer', x=-19.52, y=64.62, z=193.67], EntityZombie['Zombie'/197, l='MpServer', x=38.59, y=59.00, z=153.00], EntitySkeleton['Skeleton'/196, l='MpServer', x=37.50, y=59.00, z=153.88], EntityBat['Bat'/199, l='MpServer', x=43.69, y=29.10, z=185.63], EntityCreeper['Creeper'/198, l='MpServer', x=45.50, y=29.00, z=188.50], EntitySquid['Squid'/195, l='MpServer', x=32.50, y=61.38, z=136.50], EntityPig['Pig'/194, l='MpServer', x=43.50, y=67.00, z=127.31], EntitySlime['Slime'/87, l='MpServer', x=-45.69, y=25.00, z=153.69], EntityZombie['Zombie'/208, l='MpServer', x=60.56, y=24.00, z=199.88], EntitySkeleton['Skeleton'/89, l='MpServer', x=-37.44, y=63.00, z=185.21], EntityCreeper['Creeper'/88, l='MpServer', x=-43.00, y=64.00, z=190.53], EntitySkeleton['Skeleton'/211, l='MpServer', x=59.50, y=28.00, z=248.50], EntityZombie['Zombie'/111, l='MpServer', x=-29.50, y=15.00, z=115.50], EntitySkeleton['Skeleton'/114, l='MpServer', x=-31.50, y=35.00, z=116.50], EntitySpider['Spider'/113, l='MpServer', x=-25.97, y=16.00, z=117.72], EntitySkeleton['Skeleton'/112, l='MpServer', x=-17.31, y=17.00, z=115.28], EntityBat['Bat'/127, l='MpServer', x=-28.25, y=57.10, z=204.50], EntitySquid['Squid'/126, l='MpServer', x=-17.78, y=61.31, z=131.16], EntitySquid['Squid'/125, l='MpServer', x=-12.03, y=61.09, z=133.53], EntitySquid['Squid'/124, l='MpServer', x=-20.69, y=61.25, z=135.75], EntitySquid['Squid'/123, l='MpServer', x=-23.81, y=61.34, z=134.97], EntitySquid['Squid'/122, l='MpServer', x=-23.41, y=61.00, z=138.91], EntitySquid['Squid'/121, l='MpServer', x=-19.03, y=61.34, z=133.94]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

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

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

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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 8.1 (amd64) version 6.3

Java Version: 1.7.0_79, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 618621200 bytes (589 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1517 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

UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1517-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1517} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1517-1.7.10.jar)

UCHIJAAAA hm{7.0} [HelpFul Mod] (bin)

GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4276' Renderer: 'Intel® HD Graphics 4000'

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: Intel® HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4276, Intel

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)

Link to comment
Share on other sites

well first you can remove the if statement in both methods since you have the condition in your ? condition.

 

But I would recommend splitting it up into separate if statements so that you can put a break point in on each condition because one of them is failing when it shouldn't be.

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Link to comment
Share on other sites

Well if you didn't return null it might do something useful.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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



×
×
  • Create New...

Important Information

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