Jump to content

[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI


Recommended Posts

  • Replies 116
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

You weren't and this is not the right solution.

And copy-paste friendly helps nobody.

Sorry D': I was just trying to help, normally I don't give copy-paste stuff either but this was just... To much for my brain... And also, why is it not the right solution?

If you do use them as a block position, you must pass in a block position.

I use this for a block, that's why I thought it had to be the coörds

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Posted

What you need to do depends entirely on what you do in your GUI handler. How do you use the xyz values there? If you don't use them, it does not matter what you pass in, just use 0.

If you do use them as a block position, you must pass in a block position.

 

Alright. That makes me think. Since it is not a block, I don't need position, hm? So I change them to 0s.

 

Second: I realize that I was using tileentity in my ContainerTestBag. I changed all the TE stuff to my capability class, but I not have this error:

"Cannot make a static reference to the non-static method getCapability(Capability<IItemHandler>, EnumFacing) from the type TestBagCapabilities"

 

https://github.com/EscapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/container/ContainerTestBag.java#L18

 

at there. How can I fix this as well?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

You really need to learn some more basic Java, because you are asking questions that you should know the answer to. Do you understand the difference between a static and non-static method?

Posted

No need to be sorry. I just get aggravated about this particular topic, because I see so many people using openGui without understanding wtf it does. And it's so simple... Just 3 numbers passed to your GuiHandler.

 

Second: I realize that I was using tileentity in my ContainerTestBag. I changed all the TE stuff to my capability class, but I not have this error:

"Cannot make a static reference to the non-static method getCapability(Capability<IItemHandler>, EnumFacing) from the type TestBagCapabilities"

 

https://github.com/EscapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/container/ContainerTestBag.java#L18

 

at there. How can I fix this as well?

So, you realized you don't have a TE. But something has to hold the capability. Let's think, what could that be... If only there was something that represented an item...

 

How would I use and ItemStack here?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

ItemStack

implements

ICapabilityProvider

. You obtain the capability from it in the same way you would from a TileEntity. Or any other capability provider.

 

So what do I do here

		IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

  to fix this? (Or am I looking at the wrong line?)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

package com.github.escapemc.thingsmod.container;

import com.github.escapemc.thingsmod.hardlib.api.internal.CommonContainer9x5;
import com.github.escapemc.thingsmod.hardlib.api.inventory.SlotItem;
import com.github.escapemc.thingsmod.items.TestBagCapabilities;
import com.github.escapemc.thingsmod.tileentity.TileEntityTestChest;

import net.minecraft.entity.player.InventoryPlayer;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;

public class ContainerTestBag extends CommonContainer9x5 {
    private int numRows = 2;


public ContainerTestBag(InventoryPlayer inventory) {
	super(inventory, inventory, null);
	IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

        for (int j = 0; j < this.numRows; ++j)
        {
            for (int k = 0; k < 9; ++k)
            {
                this.addSlotToContainer(new SlotItem(inven, k + j * 9, 8 + k * 18, 12 + j * 18));
            }
        }


	}
}

Is my Container.

 

package com.github.escapemc.thingsmod.items;

import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.ItemStackHandler;

public class TestBagCapabilities implements ICapabilitySerializable {

protected ItemStackHandler inputSlot;

public TestBagCapabilities() {
	inputSlot = new ItemStackHandler(18);



}

@Override
public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
	return this.getCapability(capability, facing) != null;
}

@Override
public <T> T getCapability(Capability<T> capability, EnumFacing facing) {
	if(capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
		return (T) inputSlot;
	}
	return null;
}

@Override
public NBTBase serializeNBT() {
	NBTTagCompound NBTBase = new NBTTagCompound();
	((NBTTagCompound)NBTBase).setTag("inputSlot", inputSlot.serializeNBT());
	return NBTBase;

}

@Override
public void deserializeNBT(NBTBase nbt) {
	inputSlot.deserializeNBT(((NBTTagCompound) nbt).getCompoundTag("inputSlot"));


}


}

 

My ItemStack

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No, you're not. You're trying to call

TestBagCapabilities.getCapability

, as if it is a static method (which it isn't).

Posted

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No, you're not. You're trying to call

TestBagCapabilities.getCapability

, as if it is a static method (which it isn't).

 

*is tearing out hair* Wait??? So then what is my itemstack? And would I use .getCapability to get the capability?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No you're not.

 

IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

You're calling it (statically) on

TestBagCapabilities

, not on an

ItemStack

.

 

public class TestBagCapabilities implements ICapabilitySerializable

 

My ItemStack

 

That is not an item stack, that is TestBagCapabilities which is an ICapabilitySerializable.

 

And again,

TestBagCapabilities.getCapability()

doesn't exist,

TestBagCapabilities#getCapability()

does.

 

If you want an item stack, pass the item stack from your GUI handler to your container, or get it from the player's active item.

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.

Posted

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No you're not.

 

IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

You're calling it (statically) on

TestBagCapabilities

, not on an

ItemStack

.

 

public class TestBagCapabilities implements ICapabilitySerializable

 

My ItemStack

 

That is not an item stack, that is TestBagCapabilities which is an ICapabilitySerializable.

 

And again,

TestBagCapabilities.getCapability()

doesn't exist,

TestBagCapabilities#getCapability()

does.

 

If you want an item stack, pass the item stack from your GUI handler to your container, or get it from the player's active item.

 

Ok, this clarifies several things. Thank you Draco.

Yet still, I do not understand where my ItemStack is I need to use, and the more I look, the more confused I get.

Could you potentially go through my GitHub, highlight lines, and tell me what I need to do? I would appreciate it if you could. If not, hint me toward my next step...?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

You need to get it from the player. 

Player#getHeldItem(EnumHand.Main)

IIRC.

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.

Posted

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

 

You need to call

getHeldItem

on the player. You could pass the player to the constructor of your container, or get the player from the InventoryPlayer which is already in the constructor -

inventory.player

.

Posted

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

 

You need to call

getHeldItem

on the player. You could pass the player to the constructor of your container, or get the player from the InventoryPlayer which is already in the constructor -

inventory.player

.

 

Ok ok, so

	public ContainerTestBag(InventoryPlayer inventory) {
	super(inventory, inventory, null);
	IItemHandler inven = inventory.getCurrentItem().getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

        for (int j = 0; j < this.numRows; ++j)
        {
            for (int k = 0; k < 9; ++k)
            {
                this.addSlotToContainer(new SlotItem(inven, k + j * 9, 8 + k * 18, 12 + j * 18));
            }
        }

  is this right?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

So I fixed that, and ran the game. I right click it, and it just goes to my off hand.

 

ALso, the console says

[14:19:03] [Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1108) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:406) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0_101]
at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0_101]
at net.minecraft.inventory.Container.getSlot(Container.java:127) ~[Container.class:?]
at net.minecraft.inventory.Container.putStacksInSlots(Container.java:590) ~[Container.class:?]
at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1268) ~[NetHandlerPlayClient.class:?]
at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:67) ~[sPacketWindowItems.class:?]
at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:12) ~[sPacketWindowItems.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]
... 15 more

 

I also realize this:

 

	@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn,
		EnumHand hand) {
	playerIn.openGui(Main.instance, GuiHandler.TEST_BAG, worldIn, 0, 0, 0);
	return super.onItemRightClick(itemStackIn, worldIn, playerIn, hand);
}	

 

WHat do i need to change any of this to to fix it? (I forgot to rid the code of that second one with return super... And I do not know what to change all of this to)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

Does that console error happen when you use your item, or regardless of the item?

 

Yes, I notice this now

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

EDIT: I think i have fixed the onItemRightClicked.

 

I have been tinkering around, but no success with this. And now my chest isn't working either!

 

If I right click the test_bag, it disappears. Right clicking a normal item now does nothing (good), and I can't use my chest. It gives me this error in console:

 

[14:59:26] [server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:742) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: java.lang.NullPointerException
at com.github.escapemc.thingsmod.container.ContainerTestChest.<init>(ContainerTestChest.java:19) ~[ContainerTestChest.class:?]
at com.github.escapemc.thingsmod.handlers.GuiHandler.getServerGuiElement(GuiHandler.java:29) ~[GuiHandler.class:?]
at net.minecraftforge.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:251) ~[NetworkRegistry.class:?]
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:87) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2723) ~[EntityPlayer.class:?]
at com.github.escapemc.thingsmod.blocks.test_chest.onBlockActivated(test_chest.java:64) ~[test_chest.class:?]
at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:477) ~[PlayerInteractionManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]
... 5 more

 

Right clicking test_bag gives same error as earlier

 

GitHub updated. https://github.com/EscapeMC/ThingsMod-1.10.2/tree/master/src/main/java/com/github/escapemc/thingsmod

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

Can you be more specific about what is going wrong? Does your GUI open? Do you get a console error or crash?

 

I just edited last message, but no Gui opens

 

EDIT: I ran the game again to grab the console for both again:

 

 

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

[15:04:45] [main/INFO] [GradleStart]: Extra: []

[15:04:45] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/school/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[15:04:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[15:04:45] [main/INFO] [FML]: Forge Mod Loader version 12.18.2.2099 for Minecraft 1.10.2 loading

[15:04:45] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_101, running on Mac OS X:x86_64:10.12.2, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre

[15:04:45] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[15:04:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[15:04:45] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[15:04:45] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[15:04:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:04:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:04:45] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[15:04:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[15:04:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:04:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[15:04:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[15:04:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:04:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:04:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[15:04:48] [Client thread/INFO]: Setting user: Player177

[15:04:52] [Client thread/WARN]: Skipping bad option: lastServer:

[15:04:52] [Client thread/INFO]: LWJGL Version: 2.9.2

[15:04:53] [Client thread/INFO] [FML]: MinecraftForge v12.18.2.2099 Initialized

[15:04:53] [Client thread/INFO] [FML]: Replaced 232 ore recipes

[15:04:53] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[15:04:53] [Client thread/INFO] [FML]: Searching /Users/school/Extras/ThingsMod 1.10.2/run/mods for mods

[15:04:55] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[15:04:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tm] at CLIENT

[15:04:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tm] at SERVER

[15:04:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Things Mod

[15:04:56] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[15:04:56] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations

[15:04:56] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[15:04:56] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[15:04:56] [Client thread/INFO] [FML]: Applying holder lookups

[15:04:56] [Client thread/INFO] [FML]: Holder lookups applied

[15:04:56] [Client thread/INFO] [FML]: Applying holder lookups

[15:04:56] [Client thread/INFO] [FML]: Holder lookups applied

[15:04:56] [Client thread/INFO] [FML]: Applying holder lookups

[15:04:56] [Client thread/INFO] [FML]: Holder lookups applied

[15:04:56] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[15:04:56] [Client thread/INFO] [sTDOUT]: [com.github.escapemc.thingsmod.Main:preinit:42]: Pre Init

[15:04:56] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json

[15:04:56] [Client thread/INFO] [FML]: Applying holder lookups

[15:04:56] [Client thread/INFO] [FML]: Holder lookups applied

[15:04:56] [Client thread/INFO] [FML]: Injecting itemstacks

[15:04:56] [Client thread/INFO] [FML]: Itemstack injection complete

[15:04:57] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: OUTDATED Target: 12.18.3.2185

[15:04:58] [sound Library Loader/INFO]: Starting up SoundSystem...

[15:04:59] [Thread-6/INFO]: Initializing LWJGL OpenAL

[15:04:59] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[15:04:59] [Thread-6/INFO]: OpenAL initialized.

[15:04:59] [sound Library Loader/INFO]: Sound engine started

[15:05:02] [Client thread/INFO] [FML]: Max texture size: 16384

[15:05:02] [Client thread/INFO]: Created: 16x16 textures-atlas

[15:05:04] [Client thread/INFO] [sTDOUT]: [com.github.escapemc.thingsmod.Main:init:59]: Init

[15:05:04] [Client thread/INFO] [FML]: Injecting itemstacks

[15:05:04] [Client thread/INFO] [FML]: Itemstack injection complete

[15:05:04] [Client thread/INFO] [sTDOUT]: [com.github.escapemc.thingsmod.Main:postinit:69]: Post Init

[15:05:04] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[15:05:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Things Mod

[15:05:05] [Client thread/INFO]: SoundSystem shutting down...

[15:05:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[15:05:05] [sound Library Loader/INFO]: Starting up SoundSystem...

[15:05:06] [Thread-8/INFO]: Initializing LWJGL OpenAL

[15:05:06] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[15:05:06] [Thread-8/INFO]: OpenAL initialized.

[15:05:06] [sound Library Loader/INFO]: Sound engine started

[15:05:07] [Client thread/INFO] [FML]: Max texture size: 16384

[15:05:08] [Client thread/INFO]: Created: 1024x512 textures-atlas

[15:05:09] [Client thread/WARN]: Skipping bad option: lastServer:

[15:05:11] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

[15:05:13] [server thread/INFO]: Starting integrated minecraft server version 1.10.2

[15:05:13] [server thread/INFO]: Generating keypair

[15:05:13] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[15:05:13] [server thread/INFO] [FML]: Applying holder lookups

[15:05:13] [server thread/INFO] [FML]: Holder lookups applied

[15:05:13] [server thread/INFO] [FML]: Loading dimension 0 (Test World) (net.minecraft.server.integrated.IntegratedServer@6abbdf15)

[15:05:13] [server thread/INFO] [FML]: Loading dimension 1 (Test World) (net.minecraft.server.integrated.IntegratedServer@6abbdf15)

[15:05:13] [server thread/INFO] [FML]: Loading dimension -1 (Test World) (net.minecraft.server.integrated.IntegratedServer@6abbdf15)

[15:05:13] [server thread/INFO]: Preparing start region for level 0

[15:05:14] [server thread/INFO]: Preparing spawn area: 5%

[15:05:15] [server thread/INFO]: Preparing spawn area: 76%

[15:05:16] [server thread/INFO]: Changing view distance to 12, from 10

[15:05:18] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[15:05:18] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[15:05:18] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[15:05:18] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[15:05:18] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[15:05:18] [server thread/INFO]: Player177[local:E:1453e0ff] logged in with entity id 246 at (122.18175955368612, 81.0, 128.4977614027182)

[15:05:18] [server thread/INFO]: Player177 joined the game

[15:05:19] [server thread/INFO]: Saving and pausing game...

[15:05:19] [server thread/INFO]: Saving chunks for level 'Test World'/Overworld

[15:05:20] [server thread/INFO]: Saving chunks for level 'Test World'/Nether

[15:05:20] [server thread/INFO]: Saving chunks for level 'Test World'/The End

[15:05:20] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@57988c02[id=c9f1c2a5-5419-31dc-8288-99641f14292c,name=Player177,properties={},legacy=false]

com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time

at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]

at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]

at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]

at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]

at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]

[15:05:23] [server thread/INFO]: [Player177: Cleared the inventory of Player177, removing 2 items]

[15:05:23] [Client thread/INFO]: [CHAT] Cleared the inventory of Player177, removing 2 items

[15:05:30] [server thread/INFO]: <Player177> Now Testing test_bag

[15:05:30] [Client thread/INFO]: [CHAT] <Player177> Now Testing test_bag

[15:05:34] [server thread/INFO]: [Player177: Given [Test Bag] * 1 to Player177]

[15:05:34] [Client thread/INFO]: [CHAT] Given [Test Bag] * 1 to Player177

[15:05:36] [Client thread/FATAL]: Error executing task

java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46

at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]

at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]

at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1108) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:406) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46

at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0_101]

at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0_101]

at net.minecraft.inventory.Container.getSlot(Container.java:127) ~[Container.class:?]

at net.minecraft.inventory.Container.putStacksInSlots(Container.java:590) ~[Container.class:?]

at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1268) ~[NetHandlerPlayClient.class:?]

at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:67) ~[sPacketWindowItems.class:?]

at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:12) ~[sPacketWindowItems.class:?]

at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]

at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]

... 15 more

[15:05:39] [server thread/INFO]: [Player177: Cleared the inventory of Player177, removing 1 items]

[15:05:39] [Client thread/INFO]: [CHAT] Cleared the inventory of Player177, removing 1 items

[15:05:50] [server thread/INFO]: <Player177> Now Testing test_chest (right clicking it on ground)

[15:05:50] [Client thread/INFO]: [CHAT] <Player177> Now Testing test_chest (right clicking it on ground)

[15:05:53] [server thread/FATAL]: Error executing task

java.util.concurrent.ExecutionException: java.lang.NullPointerException

at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]

at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]

at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:742) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?]

at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]

Caused by: java.lang.NullPointerException

at com.github.escapemc.thingsmod.container.ContainerTestChest.<init>(ContainerTestChest.java:19) ~[ContainerTestChest.class:?]

at com.github.escapemc.thingsmod.handlers.GuiHandler.getServerGuiElement(GuiHandler.java:29) ~[GuiHandler.class:?]

at net.minecraftforge.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:251) ~[NetworkRegistry.class:?]

at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:87) ~[FMLNetworkHandler.class:?]

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2723) ~[EntityPlayer.class:?]

at com.github.escapemc.thingsmod.blocks.test_chest.onBlockActivated(test_chest.java:64) ~[test_chest.class:?]

at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:477) ~[PlayerInteractionManager.class:?]

at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]

at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]

... 5 more

[15:05:55] [server thread/INFO]: <Player177> Done

[15:05:55] [Client thread/INFO]: [CHAT] <Player177> Done

[15:05:57] [Client thread/INFO]: Stopping!

[15:05:57] [Client thread/INFO]: SoundSystem shutting down...

[15:05:57] [server thread/INFO]: Stopping server

[15:05:57] [server thread/INFO]: Saving players

[15:05:57] [server thread/INFO]: Saving worlds

[15:05:57] [server thread/INFO]: Saving chunks for level 'Test World'/Overworld

[15:05:57] [server thread/INFO]: Saving chunks for level 'Test World'/Nether

[15:05:57] [server thread/INFO]: Saving chunks for level 'Test World'/The End

[15:05:57] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[15:05:57] [Client Shutdown Thread/INFO]: Stopping server

 

 

 

 

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

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.