File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
common/src/main/kotlin/com/lambda Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import kotlin.math.ceil
1313 */
1414object EntityUtils {
1515
16- // TODO: Tick cache implementation
17-
1816 /* *
1917 * Gets the closest entity of type [T] within a specified range.
2018 *
You can’t perform that action at this time.
0 commit comments