- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.8k
feat: Add new overloads for Pathfinder #13192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Not really a fan of deprecating the existing method, wouldn't that require everyone to cast to Entity to not get the deprecation warning? The existing method could also become a default and call the new one. | 
1e557ab    to
    9e90a83      
    Compare
  
    | 
 I get the point but i deprecated it because LivingEntity is extending Entity so we shouldn't keep an overload that's basically going to do the same thing as the other one but more limited, the best solution would be to remove the old one but that would cause all plugins to need to be recompiled. The devs can choose to either suppress that warning in some way or just wait until the old one gets removed and update their dependency on paper-api and everything will work fine, no matter if they start casting to  | 
| We could perhaps add an  | 
| 
 I don't see why not, it's not like that default LivingEntity method would ever require maintenance when it's just redirecting to the Entity method 
 Sounds extremely awful | 
| 
 I'll change that then to redirect to the new one | 
4df47e0    to
    15f61df      
    Compare
  
    | done, now the  | 
        
          
                paper-api/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      f9a599c    to
    a91cc3d      
    Compare
  
    a91cc3d    to
    29bfd67      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also i found another javadoc issues not caused by this PR but maybe can be good fix like L185
        
          
                paper-api/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                paper-api/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | /** | ||
| * @return Returns the index of the current point along the points returned in {@link #getPoints()} the entity | ||
| * is trying to reach. This value will be higher than the maximum index of {@link #getPoints()} if this path finding is done. | ||
| * is trying to reach. This value will be higher than the maximum index of {@link #getPoints()} if this path finding is done | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's wrong as per oracle convention, also i would rather not do cleanup of this nature until checkstyle is in, can you revert all your changes apart from the two overload changes.
| @Lulu13022002 everything should be addressed now👍 | 
Fixes #13191