-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[Solved] [1.12.2] How to handle exceptions in constructors
Animefan8888 replied to IceMetalPunk's topic in Modder Support
My bad sent this as I received your message. -
[Solved] [1.12.2] How to handle exceptions in constructors
Animefan8888 replied to IceMetalPunk's topic in Modder Support
Force them to use a Block or Ite instance then you can limit that by making methods that add them, but only take a Block or an Item. Hence why I said And make the constructor of the OreDictManager be protected so only classes extending it or in the same package can access instances of it. -
[Solved] [1.12.2] How to handle exceptions in constructors
Animefan8888 replied to IceMetalPunk's topic in Modder Support
I dont see why this is a problem actually, are you the only one using this code? If so then you should know that the only two types it can accept are Blocks and Items. Ultimately you could make two classes that extend your OreDictManager that explicitly uses Item and Block respectively and possibly make your OreDictManager abstract unless there won't be a difference between the two functionally. -
Help with json texture errors for 1.12.2
Animefan8888 replied to RaptorClaus's topic in Modder Support
-
Help with json texture errors for 1.12.2
Animefan8888 replied to RaptorClaus's topic in Modder Support
Post the log. -
You should use the Animation System, I have a tutorial about this on this forum it is here. It explains how to use it, hopefully decently well. If you have any questions ask.
-
What type of item? ItemTool, ItemPickaxe, Item? What is its parent class?
-
It's a two byte number.
-
Yes that is what I had written before. But then I edited it because I remembered it was saved as a short value and read as a short value because that is the closest thing to its size.
-
intermediate TileEntity Animation System Explanation
Animefan8888 replied to Animefan8888's topic in User Submitted Tutorials
Oh, thank you I wrote this late at night after finally getting my animation to work. I will change that. -
Cool beans, I'm happy for you.
-
That number is too big actually. There is a max amount the max damage can be which is like a short, I'm not quite sure.
-
You should switch over to using one WorldGenerator, create two fields in one class and call runGeneration on both.
-
There is a code block button looks like this <> and a spoiler block button, please use them.
-
Try stepping through your code in the debugger of your IDE it will show you exactly what is going on.
-
You dont have to. But that is what most people do. Use a switch case statement or an if statement. Post your code for the FireOreGen and WaterOreGen classes
-
Look at the java doc above the class. But I believe you lower it.
-
Change the number 10
-
Then change the rarity. Cant help if you dont post code.
-
[1.12.2] MultiPart Entity Interaction Help
Animefan8888 replied to Electric's topic in Modder Support
Yes I meant the latter. Instead of doing new MultiPartEntity do new EntityTest. -
[1.12.2] MultiPart Entity Interaction Help
Animefan8888 replied to Electric's topic in Modder Support
Well you didn't do what I said. -
[1.12.2] MultiPart Entity Interaction Help
Animefan8888 replied to Electric's topic in Modder Support
Post your code