Merge branch 'feature/pokemon-debug-utils' into 'main'

debug galore for pokemon

See merge request cable-mc/cobblemon!1175
This commit is contained in:
Nick
2024-09-24 23:05:41 +00:00
5 changed files with 15 additions and 2 deletions
@@ -88,6 +88,7 @@ import net.minecraft.network.syncher.EntityDataSerializers
import net.minecraft.network.syncher.SynchedEntityData
import com.mojang.serialization.Codec
import net.minecraft.nbt.NbtOps
import net.minecraft.network.protocol.game.DebugPackets
import java.util.*
import java.util.concurrent.CompletableFuture
import net.minecraft.resources.ResourceLocation
@@ -349,6 +350,13 @@ open class PokemonEntity(
super.handleEntityEvent(status)
}
override fun sendDebugPackets() {
super.sendDebugPackets()
DebugPackets.sendEntityBrain(this)
DebugPackets.sendGoalSelector(level(), this, this.goalSelector)
DebugPackets.sendPathFindingPacket(level(), this, this.navigation.path, this.navigation.path?.distToTarget ?: 0F)
}
override fun tick() {
super.tick()
// We will be handling idle logic ourselves thank you
+1 -1
View File
@@ -51,7 +51,7 @@ dependencies {
bundle(project(path = ":common", configuration = "transformProductionFabric")) {
isTransitive = false
}
modLocalRuntime(libs.fabric.debugutils)
modImplementation(libs.fabric.loader)
modApi(libs.fabric.api)
modApi(libs.bundles.fabric)
@@ -35,6 +35,7 @@ repositories {
mavenCentral()
//JEI
maven("https://maven.blamejared.com/")
maven("https://maven.parchmentmc.org")
}
license {
+4
View File
@@ -24,10 +24,12 @@ fabric-api = "0.104.0+1.21.1"
fabric-kotlin = "1.11.0+kotlin.2.0.0"
fabric-permissions-api = "0.2-SNAPSHOT"
lambDynamicLights = "2.3.4+1.20.4"
debugutils-fabric = "1.21-1.0.6-fabric"
# NeoForge
neoforge = "21.1.51"
neo-kotlin-for-forge = "5.4.0"
debugutils-forge = "1.21-1.0.6-neoforge"
# Data Storage
mongo = "4.10.2"
@@ -67,10 +69,12 @@ adorn-fabric = { group = "maven.modrinth", name = "adorn", version = "5.3.0-neof
lambDynamicLights = { group = "maven.modrinth", name = "lambdynamiclights", version.ref = "lambDynamicLights"}
jei-api-fabric = { group = "mezz.jei", name = "jei-1.21-fabric-api", version.ref = "jei-api" }
jei-fabric = { group = "mezz.jei", name = "jei-1.21-fabric", version.ref = "jei-api"}
fabric-debugutils = { group = "maven.modrinth", name = "debugutils", version.ref = "debugutils-fabric"}
# NeoForge
neoforge = { group = "net.neoforged", name = "neoforge", version.ref = "neoforge" }
neo-kotlin-forge = { group = "thedarkcolour", name = "kotlinforforge-neoforge", version.ref = "neo-kotlin-for-forge" }
neoforge-debugutils = { group = "maven.modrinth", name = "debugutils", version.ref = "debugutils-forge"}
# Data Storage
mongo-driver-core = { group = "org.mongodb", name = "mongodb-driver-core", version.ref = "mongo" }
+1 -1
View File
@@ -40,7 +40,7 @@ dependencies {
//shadowCommon group: 'commons-io', name: 'commons-io', version: '2.6'
//modImplementation(libs.flywheelForge)
//include(libs.flywheelForge)
modLocalRuntime(libs.neoforge.debugutils)
implementation(project(":common", configuration = "namedElements")) {
isTransitive = false
}