Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
0944e8d
Fix reach misconceptions and inventory crash
Avanatiker Sep 30, 2024
b0892a3
Faster pathing
Avanatiker Sep 30, 2024
d15a366
Only allow ignoring blocks when they are in airspace
Avanatiker Sep 30, 2024
462f2e7
Fix collecting items
Avanatiker Oct 1, 2024
720c120
Added WorldEater
Avanatiker Oct 1, 2024
87e30a3
Allow mining below player if support is provided
Avanatiker Oct 1, 2024
deebe22
Merge branch 'master' into feature/taskflow
Avanatiker Oct 5, 2024
e5f4256
Merge branch 'master' into feature/taskflow
Avanatiker Oct 6, 2024
094c874
More dynamic configuration of the highway
Avanatiker Oct 7, 2024
1a44be4
Less confusing material category
Avanatiker Oct 7, 2024
550873e
Merge branch 'master' into feature/taskflow
Avanatiker Oct 8, 2024
ecb0418
Loading NBT structure files per command
Avanatiker Oct 9, 2024
7eacafc
feat: StructureRegistry
emyfops Oct 10, 2024
94efb70
Proper structure template file discovery
Avanatiker Oct 11, 2024
6ff5083
Ignore unobtainable block properties
Avanatiker Oct 11, 2024
7a77cc8
Sneak when placing onto interaction blocks
Avanatiker Oct 11, 2024
50bdef8
ToDo reminder for HALF properties
Avanatiker Oct 11, 2024
e0416a7
Merge branch 'master' into feature/taskflow
Avanatiker Oct 19, 2024
55ef7d3
Support for half slab building
Avanatiker Oct 19, 2024
fe691b1
Merge remote-tracking branch 'origin/master' into feature/taskflow
Avanatiker Oct 20, 2024
670324f
Restructure
Avanatiker Oct 20, 2024
0317cde
ref!: structure loader, management and conversion
emyfops Nov 10, 2024
437f9e9
grammar
emyfops Nov 10, 2024
466f3f3
Cleanup
Avanatiker Nov 10, 2024
a0ade28
Relative structure paths support
Avanatiker Nov 10, 2024
076e2c2
Some fixes
Avanatiker Nov 10, 2024
a9c5e30
fix: schem palette ordering
emyfops Nov 10, 2024
f28dd62
Merge and update copyright
Avanatiker Nov 11, 2024
1adbf71
Merge with master
Avanatiker Dec 14, 2024
468c355
Forcing horizontal rotation, placement preprocessor, lots of fixes
Avanatiker Dec 15, 2024
d91811f
Fix format
Avanatiker Dec 16, 2024
a5ea17c
Refactor Task system for enhanced flexibility and clarity
Avanatiker Dec 23, 2024
5cfdbac
Refactor block interaction logic to use expected positions
Avanatiker Dec 28, 2024
e68b215
Refactor task resolution and task nesting complexity
Avanatiker Dec 28, 2024
d0a1902
Refactor processor API and add Axis/BlockFace processors
Avanatiker Dec 30, 2024
9e0ba5a
Refactor placement handling in BuildTask implementation
Avanatiker Dec 30, 2024
7d8e384
Refactor inventory system configuration to enhance material handling.
Avanatiker Dec 30, 2024
ecd23e4
Refactor inventory and container structure
Avanatiker Dec 30, 2024
c14bd87
Refactor inventory and build configurations
Avanatiker Dec 30, 2024
653e71c
Proper drop collection
Avanatiker Dec 30, 2024
18c373b
Refactor rotation handling and placement logic
Avanatiker Dec 31, 2024
1de3f6f
Rework initialization logging
Avanatiker Jan 1, 2025
3442d57
Refactor event listener management in Task and EventFlow
Avanatiker Jan 1, 2025
cc8408a
Refactor inventory handling and transaction structure.
Avanatiker Jan 1, 2025
3a6f612
Merge branch 'master' into feature/taskflow
Avanatiker Jan 1, 2025
34b3fb1
Merge branch 'master' into feature/taskflow
Avanatiker Jan 1, 2025
573b69c
Clean up InventoryEvents
Avanatiker Jan 2, 2025
7a10323
Refactor rotation management and add Ender Chest access config.
Avanatiker Jan 2, 2025
72b99cb
Merge branch 'master' into feature/taskflow
Avanatiker Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge with master
  • Loading branch information
Avanatiker committed Dec 14, 2024
commit 1adbf71779bc9f173770db7212fbbb1e7734e6a6
32 changes: 2 additions & 30 deletions common/src/main/kotlin/com/lambda/core/Loader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,8 @@ package com.lambda.core

import com.lambda.Lambda
import com.lambda.Lambda.LOG
import com.lambda.command.CommandRegistry
import com.lambda.friend.FriendRegistry
import com.lambda.graphics.renderer.gui.font.LambdaEmoji
import com.lambda.graphics.renderer.gui.font.LambdaFont
import com.lambda.gui.GuiConfigurable
import com.lambda.gui.HudGuiConfigurable
import com.lambda.interaction.PlayerPacketManager
import com.lambda.interaction.RotationManager
import com.lambda.interaction.construction.StructureRegistry
import com.lambda.interaction.material.ContainerManager
import com.lambda.module.ModuleRegistry
import com.lambda.sound.SoundRegistry
import com.lambda.util.Communication.ascii
import com.lambda.util.FolderRegister
import com.lambda.util.reflections.getInstances
import kotlin.system.measureTimeMillis
import kotlin.time.DurationUnit
import kotlin.time.toDuration
Expand All @@ -43,23 +31,7 @@ object Loader {
val runtime: String
get() = "${(System.currentTimeMillis() - started).toDuration(DurationUnit.MILLISECONDS)}"

private val loadables = listOf(
FolderRegister,
ModuleRegistry,
CommandRegistry,
RotationManager,
PlayerPacketManager,
LambdaFont.Loader,
LambdaEmoji.Loader,
GuiConfigurable,
HudGuiConfigurable,
FriendRegistry,
SoundRegistry,
TimerManager,
PingManager,
ContainerManager,
StructureRegistry
)
private val loadables = getInstances<Loadable> { forPackages("com.lambda") }

fun initialize() {
ascii.split("\n").forEach { LOG.info(it) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package com.lambda.module.modules.player

import com.lambda.event.events.RenderEvent
import com.lambda.event.listener.SafeListener.Companion.listener
import com.lambda.event.listener.SafeListener.Companion.listen
import com.lambda.graphics.renderer.esp.builders.buildOutline
import com.lambda.interaction.construction.blueprint.Blueprint.Companion.toStructure
import com.lambda.interaction.construction.blueprint.StaticBlueprint.Companion.toBlueprint
Expand Down Expand Up @@ -66,7 +66,7 @@ object WorldEater : Module(
BaritoneUtils.cancel()
}

listener<RenderEvent.StaticESP> {
listen<RenderEvent.StaticESP> {
it.renderer.buildOutline(Box.enclosing(pos1, pos2), Color.BLUE)
}
}
Expand Down
6 changes: 3 additions & 3 deletions common/src/main/kotlin/com/lambda/task/tasks/BreakBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ class BreakBlock @Ta5kBuilder constructor(
}?.let {
clickSlot(it.index, 1, SlotActionType.THROW)
}
return@listener
return@listen
}

BaritoneUtils.setGoalAndPath(GoalBlock(itemDrop.blockPos))
return@listener
return@listen
} ?: BaritoneUtils.cancel()

if (isValid || !rotate || ctx.instantBreak) {
Expand All @@ -124,7 +124,7 @@ class BreakBlock @Ta5kBuilder constructor(
}

// ToDo: Find out when the stack entity is filled with the item
listener<WorldEvent.EntityUpdate> {
listen<WorldEvent.EntityUpdate> {
if (collectDrop
&& it.entity is ItemEntity
&& it.entity.pos.isInRange(blockPos.toCenterPos(), 0.5)
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/kotlin/com/lambda/task/tasks/BuildTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.lambda.Lambda.LOG
import com.lambda.context.SafeContext
import com.lambda.event.events.RenderEvent
import com.lambda.event.events.TickEvent
import com.lambda.event.listener.SafeListener.Companion.listener
import com.lambda.event.listener.SafeListener.Companion.listen
import com.lambda.interaction.construction.blueprint.Blueprint
import com.lambda.interaction.construction.blueprint.Blueprint.Companion.toStructure
import com.lambda.interaction.construction.blueprint.DynamicBlueprint
Expand Down
8 changes: 4 additions & 4 deletions common/src/main/kotlin/com/lambda/task/tasks/PlaceBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ class PlaceBlock @Ta5kBuilder constructor(
findOutIfNeeded = true
}

listener<MovementEvent.InputUpdate> {
if (state != State.PLACING) return@listener
listen<MovementEvent.InputUpdate> {
if (state != State.PLACING) return@listen
val hitBlock = ctx.result.blockPos.blockState(world).block
if (hitBlock in BlockUtils.interactionBlacklist) {
it.input.sneaking = true
}
}

listener<WorldEvent.BlockUpdate> {
if (it.pos != ctx.resultingPos) return@listener
listen<WorldEvent.BlockUpdate> {
if (it.pos != ctx.resultingPos) return@listen

if (ctx.targetState.matches(it.state, it.pos, world)) {
finish()
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.