Commit Graph

276 Commits

Author SHA1 Message Date
Brady
adb6904d53
Replace ToolSet parameter in cost calculation with CalculationContext 2018-08-07 16:36:32 -05:00
Brady
fc082f42e7
General cleanups to the movement system. 2018-08-07 16:14:36 -05:00
Leijurv
732ab5273c
maybe fix 2018-08-07 08:13:51 -07:00
Leijurv
a2b867bf39
reduced drowning 2018-08-07 08:09:27 -07:00
Leijurv
6dd43372f1
when a movement ends, clear all inputs, not just the ones it set on 2018-08-07 08:05:18 -07:00
Leijurv
f9a819b6a5
fix random traverse sprinting 2018-08-07 08:01:26 -07:00
Leijurv
1210db5d37
fixed diagonal movement destination 2018-08-07 08:01:17 -07:00
Leijurv
8516eab043
MovementDiagonal 2018-08-07 07:52:49 -07:00
Leijurv
42749f2325
add thisway 2018-08-07 07:47:37 -07:00
Leijurv
b5a6112bde
fixed fall detection 2018-08-07 07:39:55 -07:00
Howard Stark
b7eaf881a0
Clean falling movement generation 2018-08-07 06:41:45 -07:00
Howard Stark
e30405c0ca
Simplify fall logic and move methods 2018-08-07 06:16:38 -07:00
Brady
8b63a3adad
Fixed cached chunks not loading from file properly 2018-08-07 01:11:49 -05:00
Brady
f047dd08b0
Fix bad block lookups with cached chunks 2018-08-07 00:48:02 -05:00
Leijurv
5cdacb4939
continuous pathfinding and clearing 2018-08-06 21:07:15 -07:00
Leijurv
6e0df6e9fd
ladder descend works 2018-08-06 20:54:58 -07:00
Leijurv
d0708992d4
must use 0.5 instead of bounding box center for descending ladders 2018-08-06 20:52:19 -07:00
Leijurv
9e8154dd5e
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 19:52:41 -07:00
Leijurv
703c3b766b
water drop works 2018-08-06 19:48:09 -07:00
Brady
3f81453622
Added packet send and receive listeners 2018-08-06 21:41:17 -05:00
Leijurv
beb56dca5b
merge 2018-08-06 19:31:10 -07:00
Leijurv
1d0c71d2b8
descend lookback is pretty much fixed 2018-08-06 19:30:12 -07:00
Brady
67f5d22280
Change isFlowing parameter to BlockPos for 1.13 changes 2018-08-06 20:25:46 -05:00
Brady
e4492b654d
Fix a couple instances of redundant IBlockState parameters 2018-08-06 20:18:16 -05:00
Brady
70dfb40e5f
Create constant for throwaway items 2018-08-06 19:50:39 -05:00
Brady
1beff941d2
Add fallback item constant to ToolSet 2018-08-06 19:43:20 -05:00
Howard Stark
24cbb5e149
Fix location of method 2018-08-06 17:34:49 -07:00
Brady
5b3eb5a375
Add rotation method to respect relative angles 2018-08-06 19:16:33 -05:00
Howard Stark
207947f7dd
Working MovementFall 2018-08-06 17:10:28 -07:00
Leijurv
a806eaaca7
disable sprinting for now 2018-08-06 17:01:28 -07:00
Leijurv
8eaa64148b
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 16:58:10 -07:00
Leijurv
c6bee3addb
even more mega smooth 2018-08-06 16:58:06 -07:00
Brady
1332dd573e
Fix onPlayerUpdate not being called 2018-08-06 18:56:57 -05:00
Leijurv
d8a99f8459
replaced 2018-08-06 16:12:41 -07:00
Leijurv
34bedb58c7
merge 2018-08-06 16:10:05 -07:00
Leijurv
2cbf8fff9b
render improvements 2018-08-06 16:09:28 -07:00
Howard Stark
d357a48710
Add cost-only MovementFall 2018-08-06 16:07:54 -07:00
Howard Stark
6ecc928039
MovementDescend update properly sets status 2018-08-06 16:07:24 -07:00
Howard Stark
5e665554ea
Relocate MovementHelper and Movement utility methods 2018-08-06 16:06:18 -07:00
Leijurv
4caf6a8265
traverse block placing and rendering 2018-08-06 15:53:35 -07:00
Howard Stark
1a33d9462d
Fix unneeded method call on BlockStateInterface internals 2018-08-06 15:52:12 -07:00
Howard Stark
0fd11f80f5
Rename Movements 2018-08-06 15:23:08 -07:00
Howard Stark
1397b137ae
Explode MovementHelper methods into more fitting places 2018-08-06 14:32:54 -07:00
Leijurv
ee4ed0cc65
MovementFall 2018-08-06 14:04:55 -07:00
Leijurv
4fa64059af
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 13:51:13 -07:00
Leijurv
233f1d9e3e
if already looking at the block, no need to change rotation 2018-08-06 13:50:38 -07:00
Howard Stark
a4ccfe50a7
Add TickEvent typecheck 2018-08-06 13:07:30 -07:00
Howard Stark
f320c6710a
Fix instant crash on mainmenu 2018-08-06 15:54:06 -04:00
Leijurv
3eef5e2972
undo 2018-08-06 11:48:30 -07:00
Leijurv
25663c54e7
more binary heap performance optims 2018-08-06 08:54:13 -07:00
Leijurv
dff3e1efe5
sanity checks in pathfinder 2018-08-06 08:42:26 -07:00
Leijurv
d884c2dea8
comment 2018-08-06 08:34:08 -07:00
Leijurv
0f37e214aa
MovementDescend 2018-08-06 08:27:50 -07:00
Leijurv
16e31fee88
numNodes debug output 2018-08-06 07:14:20 -07:00
Leijurv
95086bdcb4
slowpath option 2018-08-06 07:01:25 -07:00
Brady
5964ac60b4
Restrict LookBehavior constructor 2018-08-06 03:28:57 -05:00
Brady
e27724aca5
findPath doesn't throw an exception 2018-08-06 03:23:40 -05:00
Brady
e41a04a0d3
Fix BufferBuilder locals that were incorrectly named 2018-08-06 02:48:42 -05:00
Brady
e8149f166f
Utilize Optional return types where mostly applicable 2018-08-06 02:21:47 -05:00
Brady
091c19ca72
Fix possible NullPointerExceptions caused by last commit
Silly Brady forgot how Optional works!
2018-08-05 23:45:50 -05:00
Brady
23db615695
Clean up Optional bad practices 2018-08-05 23:42:17 -05:00
Brady
aa635360a2
Fixed gay comment 16x16 regions = bad 2018-08-05 21:13:59 -05:00
Leijurv
0a8fb574b5
don't jump on air anymore 2018-08-05 22:09:29 -04:00
Howard Stark
b96ee346f9
Fix failed path cancellation 2018-08-05 22:08:23 -04:00
Howard Stark
586024b57e
Fix improper indice check on blocks to break 2018-08-05 22:07:13 -04:00
Leijurv
3b88cd319f
fix 2018-08-05 22:05:26 -04:00
Leijurv
cfc222a5db
fixed 2018-08-05 22:04:14 -04:00
Leijurv
3b1ceea211
whoops 2018-08-05 22:02:56 -04:00
Leijurv
603b33277c
player, not center of player feet 2018-08-05 22:00:37 -04:00
Howard Stark
a35a6409ab
Invert check on Movement passability checkC 2018-08-05 21:57:53 -04:00
Howard Stark
2f06857858
Pathing is functioning 2018-08-05 21:52:55 -04:00
Leijurv
5b96e6cd57
target rotation for traverse and ascend 2018-08-05 21:25:25 -04:00
Howard Stark
785e5377e6
Clean up Movement input behavior 2018-08-05 21:17:54 -04:00
Leijurv
988124e444
almost works 2018-08-05 21:17:04 -04:00
Howard Stark
fedbe724ef
Update status when movement is prepared 2018-08-05 21:00:36 -04:00
Howard Stark
e9fedef203
Switch from Float Tuple to Rotation 2018-08-05 20:54:30 -04:00
Howard Stark
3c6415d486
Fix target creation of Movement superclass 2018-08-05 20:50:59 -04:00
Leijurv
84aeca710e
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-05 20:48:26 -04:00
Leijurv
67b9532f99
🅱️ erge 2018-08-05 20:48:02 -04:00
Howard Stark
34dd0f985f
Change visibility on LookBehaviorUtils intenal methods 2018-08-05 20:42:46 -04:00
Howard Stark
c1d61a63ae
Finish Behavior simple implementation 2018-08-05 20:37:42 -04:00
Leijurv
bda2ef8269
ascend cost 2018-08-05 20:27:45 -04:00
Leijurv
2edc7327ab
IDIOTT 2018-08-05 20:08:41 -04:00
Leijurv
6dddb2e895
merge 2018-08-05 20:07:24 -04:00
Brady
9e9ad16686
Fix another typo 2018-08-05 19:00:45 -05:00
Brady
cc0cd7b270
Fix onTick signature in PathingBehavior 2018-08-05 18:57:50 -05:00
Brady
8ef9f9db70
Minor clean ups in PathingBehavior 2018-08-05 18:57:22 -05:00
Howard Stark
379d358408
Add EventTick w/ state guarantees 2018-08-05 19:50:51 -04:00
Brady
89189c532e
Make Helper#world return WorldClient instead of World 2018-08-05 18:41:57 -05:00
Brady
19e5784af9
Fix typo lol 2018-08-05 18:40:10 -05:00
Howard Stark
956e212e39
Change LookBehavior target initialization location 2018-08-05 19:26:31 -04:00
Howard Stark
68874751da
Remove misleading LookBehaviorUtil method 2018-08-05 19:23:51 -04:00
Leijurv
3201766617
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-05 19:21:48 -04:00
Howard Stark
7a21ef423a
Add untested LookBehavior and related utils 2018-08-05 19:20:48 -04:00
Leijurv
98f94f0a81
slowpath rendering 2018-08-05 18:53:11 -04:00
Leijurv
e7c27e04ac
rudimentary path rendering 2018-08-05 18:38:11 -04:00
Leijurv
3dea7eb4f3
insanity check 2018-08-05 18:38:01 -04:00
Leijurv
4cbf20922c
pathing frame listener 2018-08-05 17:48:10 -04:00
Leijurv
c1306ab8bf
bugfix 2018-08-05 17:20:55 -04:00
Leijurv
10212601c8
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-05 17:16:49 -04:00