-
-
Notifications
You must be signed in to change notification settings - Fork 489
FeedAuraHack: implement auto shears #1273
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: master
Are you sure you want to change the base?
Conversation
| .filter(e -> player.distanceToSqr(e) <= rangeSq) | ||
| .filter(e -> e.isFood(heldStack)).filter(Animal::canFallInLove); | ||
| Stream<Animal> stream = EntityUtils.getValidAnimals(); | ||
|
|
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.
The name feels so misleading. It is a FeedAuraHack, but it can be used to either feeding or shearing. It is trying to do two different things in one functionality. Perhaps there should be a more generic class with more generic names.
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.
I agree, FeedAura shearing stuff doesn't make sense. It should either be two separate FeedAura/ShearAura hacks or a single RightClickAura hack with settings. I'm leaning towards two separate hacks.
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.
I totally agree, i just put it there because this was presumably the easiest point to implement this and i quickly needed some wool :)
|
I didn't want to copy all the code, so I put most of the code into a parent class, even though I do not know if this makes the most sense regarding architecture. The current solution doesn't disable the other of the two inheriting aura hacks on enable, while other auras get disabled. |
|
Maybe it would make the most sense to abstract all aurahacks into a sub class and disable them accordingly, but I don't want to refactor your entire client e.g. for(Hack hack : WURST.getHax().getAllHax())
if(hack != this && hack instanceof GenericAuraHack)
hack.setEnabled(false); |
Implements auto-shears into feed aura
Description
Simple addition to the feed aura hack to automatically shear all sheep in range.
Implemented because I needed it.
Just a simple POC, maybe there are more use cases for right clicking entities. Also a toggle in the hack settings might be appropriate.
If you want this feature in, feel free to provide feedback.
Testing
I tested the change by going to my sheep farm with shears and enabling FeedAura