Skip to content

Commit a80ff21

Browse files
committed
Added entity test module
1 parent 26ba17d commit a80ff21

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.lambda.module.modules
2+
3+
import com.lambda.event.events.TickEvent
4+
import com.lambda.event.listener.SafeListener.Companion.listener
5+
import com.lambda.module.Module
6+
import com.lambda.util.world.EntityUtils.getClosestEntity
7+
import net.minecraft.entity.Entity
8+
9+
object EntityTest : Module(
10+
name = "EntityTest",
11+
description = "Test entity",
12+
defaultTags = setOf()
13+
) {
14+
init {
15+
listener<TickEvent.Pre> {
16+
repeat(10000) {
17+
getClosestEntity<Entity>(player.eyePos, 7.0)
18+
}
19+
}
20+
}
21+
}

common/src/main/kotlin/com/lambda/util/world/EntityUtils.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import kotlin.math.ceil
1313
*/
1414
object EntityUtils {
1515

16-
// TODO: Tick cache implementation
17-
1816
/**
1917
* Gets the closest entity of type [T] within a specified range.
2018
*

0 commit comments

Comments
 (0)