-
Recently Browsing
No registered users viewing this page.
-
Posts
-
Yes, that's because the container of the crafting table is bind to the block. you have to create your own container which extends the crafting container. in this you have to overwrite the method WorkbenchContainer#canInteractWith.
-
I'm using Eclipse, and that is the right key shortcut. Just gotta figure out how to get this to work now. Copy pasting the variables, and methods doesn't' seem to work outright so I'll need to do some tweaking.
-
(Eclipse) F4 on any class name will open the type hierarchy (so if you did it on Block, you'd see all the subclasses, and if you did it on HorizontalBlock, you'd only see the subclasses of that). I can never remember the "go to definition" hotkey (it's F12 in Visual Studio, because of course I can remember that one), but hovering over a thing will give you an intellisense popup and clicking on the class identifier in that will do the same thing.
-
I have created a custom crafting table in my mod, and it extends the "CraftingTableBlock" class. For whatever reason, when I right click on it the gui opens, and then immediately closes. How do I make it not close? Do I need a gui that extends WorkbenchContainer?
-
in your own IDE you can search for the blocks. in IntelliJ you can use Ctrl + N, and type the name of the class you're looking for (RotatedPillarBlock, it's the class the logs use) in Eclipse I think it is Ctrl + Shift + T, but I'm not sure note that the vanilla and forge classes we'll be read-only, you can't edit them
-
-
Topics
-
Who's Online (See full list)