MrDireball Posted January 13, 2019 Share Posted January 13, 2019 So I want to make sure that when I add drops to the drop events of animals that they are adults, but I can't seem to find a method for checking. Quote Link to comment Share on other sites More sharing options...
MrDireball Posted January 13, 2019 Author Share Posted January 13, 2019 Ah, I was looking in EntityAnimal for it, it completely slipped my mind to check inside an interface that it implements. Thanks. Quote Link to comment Share on other sites More sharing options...
jabelar Posted January 14, 2019 Share Posted January 14, 2019 16 hours ago, MrDireball said: Ah, I was looking in EntityAnimal for it, it completely slipped my mind to check inside an interface that it implements. Thanks. Your IDE should allow you to see all fields and methods for a class. In Eclipse it is called the Type Hierarchy. Just right-click on the class in the project hierarchy pane and select Type Hierarchy. There are a couple of "buttons" that affect the filtering of the view, I like to show everything including the inherited methods. That is a better way to scan for available methods than simply scrolling through class files themselves. In modding it is especially useful to look at the Type Hierarchy because you can actually get a lot of ideas for modding after you see some of the available methods, and at least get a really good feel for how the interfaces are organized. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
MrDireball Posted January 18, 2019 Author Share Posted January 18, 2019 On 1/14/2019 at 11:26 AM, jabelar said: Your IDE should allow you to see all fields and methods for a class. In Eclipse it is called the Type Hierarchy. Just right-click on the class in the project hierarchy pane and select Type Hierarchy. There are a couple of "buttons" that affect the filtering of the view, I like to show everything including the inherited methods. That is a better way to scan for available methods than simply scrolling through class files themselves. In modding it is especially useful to look at the Type Hierarchy because you can actually get a lot of ideas for modding after you see some of the available methods, and at least get a really good feel for how the interfaces are organized. I wasn't actually looking through the code for the method, I made a variable for EntityAnimal and then typed the variable with a dot at the end and looked at all the suggestions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.