![]() ![]() Mine is a little different than the Minecraft workbench because I wanted the items to stay in the crafting matrix even when you close the GUI (the regular one tosses them on the ground). The container is where you lay out all the slots that the GUI will let the player interact with. I will also show you guys how to further extend it. Imagine this if the GUI is what you, the client, sees and interacts with, the Container is what the server sees and interacts with. In this video, I will show you how to make a creeper farm in Minecraft 1.16.5. The TileEntity holds all the information about the ItemStacks, what index they are within the inventory, all the logic about decreasing, increasing, and moving stacks, and the NBTTags that save what is held in the inventory. This part is fairly straight forward except that you want to be a subclass of BlockContainer. This can be sort of confusing.It's basically spread between three different classes. Get Our Punk, Rock and Goth Creeper Platforms & Boots for Everyday Wear, EDM, Raves, Concerts & More. ("ProjectBench: Unaccounted for object type, disabling recipe. Creepers - Velvet Creepers, Pointed Toe Creepers, Slip-On Creepers, Platform Creepers, Creeper Boots, Maryjanes & More Available in Vegan Friendly Material But Also Real Leather & Suede. ItemStack newStack = new ItemStack(emID, oreStack.stackSize, OreDictionary.WILDCARD_VALUE) ItemStack oreStack = OreDictionary.getOres((String)obj2).get(0) Easy peasy.įield f = rec.getClass().getDeclaredFields() ![]() Used cpw's reflection helper to go through all the fields until it throws an ArrayOutOfBounds exception and then break. So this leaves me with the problem I've run into: What way is there to universally access all the components of a crafting recipe across all the custom handlers? I'm starting to get the feeling there isn't. Home / Creepers 110 products Size Gender Color Style Sole Height Shape Material Price Black Suede Viva Mondo Creepers 109.95 Burgundy Velvet Viva Mondo Creepers 99.95 Black TUKskin 3-Buckle Pointed Creeper Boot 119.95 Black Leather Viva Mondo Creeper 109.95 Two-tone Pointed Creepers 109.95 Pointed Buckle Creepers 109. The only thing the interface offers is a way to check if it matches what is provided. However, this doesn't come as part of the interface, there is no way to be plainly given what's in the recipe. I'm implementing a method of crafting that doesn't hinge on the 3x3, or any layout, crafting grid at all, just the raw components themselves.įor vanilla recipes it works just fine, all IRecipes in the game (Shaped/Shapeless/Ore etc) have an array of all the item types and respective alternatives (such as for the ore dictionary recipes) so I can just go through and translate them all based on the case. So the way recipes work, as I understand it, is that when you place the components in the grid, it's checked against the CraftingManager looking for matches in item types and layouts. ![]()
0 Comments
Leave a Reply. |