Posted March 13, 20169 yr FIX: https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/inventory/SlotIInventory.java I have used this SlotIInventory class instead of Slot In my isItemValidForSlot I have it set so that you can only place blueprints in slot 0, however in the gui it is letting you place any item in that slot, does anyone know why? TileEntity - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/tileentity/TileResearchTable.java GUIContainer - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/inventory/ContainerResearchTable.java GUI - https://github.com/PlasmaBlazer/ElectronicEngineering/blob/dev/src/main/java/com/plasmablazer/electroniceng/client/gui/inventory/GuiResearchTable.java Project - https://github.com/PlasmaBlazer/ElectronicEngineering
March 13, 20169 yr Hi I'm not sure I understand; your ContainerResearchTable appears to use an ordinary slot, not a BluePrintsSlot? You might find this working example useful https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe31_inventory_furnace/Notes.txt For example the container ContainerInventoryFurnace uses a SlotFuel that only accepts burnable items for fuel slots. -TGG
March 13, 20169 yr Author Ah, sorry for the confusion its my fault, just forgot I need to make a special slot, Thanks! I just thought slot automatically checked the IInventory isItemValidForSlot but I just made my own slot that does that
March 13, 20169 yr slot automatically checked the IInventory isItemValidForSlot Haha, that would be silly! 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.
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.