Skip to content
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

Go Home After Mining and check Ineventory whileMining #1064

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from

Conversation

derBobo
Copy link

@derBobo derBobo commented Oct 16, 2019

updated pull request #910 to baritone 1.2.10 . see pull request #910 for further information

derBobo and others added 27 commits September 4, 2019 23:42
# Conflicts:
#	src/api/java/baritone/api/utils/ExampleBaritoneControl.java
#	src/main/java/baritone/process/MineProcess.java
…king

inventory to mining and farming processes.
 DRY out the inventory management code.
Lokraan and others added 2 commits October 16, 2019 21:24
@JulianGHill
Copy link

Good addition!

Copy link
Contributor

@CDAGaming CDAGaming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase this to master, and remove excess indenting

src/main/java/baritone/process/FarmProcess.java Outdated Show resolved Hide resolved
src/main/java/baritone/process/FarmProcess.java Outdated Show resolved Hide resolved
src/main/java/baritone/process/MineProcess.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/api/java/baritone/api/cache/IWaypoint.java Outdated Show resolved Hide resolved
@derBobo
Copy link
Author

derBobo commented Oct 15, 2020

I think most of my code is outdated and I will rework it in the next days

@derBobo derBobo requested a review from leijurv October 16, 2020 01:30
# Conflicts:
#	src/main/java/baritone/command/defaults/DefaultCommands.java
#	src/main/java/baritone/process/MineProcess.java
@5HT2
Copy link
Contributor

5HT2 commented Oct 16, 2020

My guy, just use intellij's autoformat instead of manually fixing everything. Ctrl alt O + Ctrl alt L

@derBobo
Copy link
Author

derBobo commented Oct 16, 2020

Yeah I know, sadly I didn't use it when I created this PR 1 year ago. BTW autoformat didn't remove all blank lines.

Copy link
Contributor

@CDAGaming CDAGaming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested this in an IDE, but this is my initial pass-through on it.

src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
src/main/java/baritone/utils/BaritoneProcessHelper.java Outdated Show resolved Hide resolved
for(BlockOptionalMeta bom : filter.blocks()) {
Block block = bom.getBlock();
Item item = block.getItemDropped(block.getDefaultState(), new Random(), 0);
Item ore = Item.getItemFromBlock(block);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a method in block like block.asItem...

I know there is in newer mc versions, as getItemFromBlock does become deprecated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't found the method in this mc version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, alright. I'll leave this comment though for the Baritone maintainers to use asItem for up-porting this

src/main/java/baritone/process/FarmProcess.java Outdated Show resolved Hide resolved
Copy link
Contributor

@CDAGaming CDAGaming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, besides one minor formatting suggestion

src/main/java/baritone/process/FarmProcess.java Outdated Show resolved Hide resolved
@derBobo
Copy link
Author

derBobo commented Nov 9, 2020

just realized this solves #605

@derBobo derBobo marked this pull request as draft November 9, 2020 17:23
@rycbar0 rycbar0 mentioned this pull request Oct 12, 2022
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants