Fully integrated smooth animation transitioning into move animations

This commit is contained in:
Paul committed 2023-11-25 17:19:19 +10:00
1 parent b339081128
commit 80b8cebb19
480 files changed
+924 -863

No files matched your search

@@ -63,7 +63,7 @@ class PokemonClientDelegate : PoseableEntityState<PokemonEntity>(), PokemonSideD
if (it) {
val model = (currentModel ?: return@subscribe) as PokemonPoseableModel
val animation = model.getAnimation(this, "faint", runtime) ?: return@subscribe
val primaryAnimation = PrimaryAnimation(animation)
val primaryAnimation = if (animation is PrimaryAnimation<PokemonEntity>) animation else PrimaryAnimation(animation, curve = { 1F })
after(seconds = 3F) { entityScaleModifier = 0F }
this.addPrimaryAnimation(primaryAnimation)
}
@@ -158,12 +158,16 @@ class PokemonClientDelegate : PoseableEntityState<PokemonEntity>(), PokemonSideD
fun cry() {
val model = currentModel ?: return
if (model is PokemonPoseableModel) {
if (cryAnimation != null && cryAnimation in statefulAnimations) {
if (cryAnimation != null && (cryAnimation in statefulAnimations || cryAnimation == primaryAnimation)) {
return
}
val animation = model.cryAnimation(currentEntity, this) ?: return
statefulAnimations.add(animation)
if (animation is PrimaryAnimation) {
addPrimaryAnimation(animation)
} else {
statefulAnimations.add(animation)
}
cryAnimation = animation
}
}
@@ -35,6 +35,6 @@ object BedrockAnimationReferenceFactory : AnimationReferenceFactory {
return model.bedrockStateful(
animationGroup = split[0],
animation = split[1]
).setPreventsIdle(if (split.size == 3) split[2].toBoolean() else JsonPokemonPoseableModel.StatefulAnimationAdapter.preventsIdleDefault)
)
}
}
@@ -101,8 +101,6 @@ abstract class PoseableEntityModel<T : Entity>(
/** Gets the [PoseableEntityState] for an entity. */
abstract fun getState(entity: T): PoseableEntityState<T>
fun getChangeFactor(part: ModelPart) = relevantParts.find { it.modelPart === part }?.changeFactor ?: 1F
fun scaleForPart(part: ModelPart, value: Float) = getChangeFactor(part) * value
fun getAnimation(state: PoseableEntityState<*>, name: String, runtime: MoLangRuntime): StatefulAnimation<T, *>? {
val poseAnimations = state.currentPose?.let(this::getPose)?.animations ?: mapOf()
val animation = resolveFromAnimationMap(poseAnimations, name, runtime) ?: resolveFromAnimationMap(animations, name, runtime)
@@ -512,7 +510,7 @@ abstract class PoseableEntityModel<T : Entity>(
.filterNot { it.run(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, 1F) }
state.statefulAnimations.removeAll(removedStatefuls)
state.currentPose?.let { getPose(it) }
?.idleStateful(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, state.primaryOverridePortion)
?.idleStateful(entity, this, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch)
updateLocators(state)
}
@@ -631,11 +629,9 @@ abstract class PoseableEntityModel<T : Entity>(
fun bedrockStateful(
animationGroup: String,
animation: String,
animationPrefix: String = "animation.$animationGroup",
preventsIdleCheck: (T?, PoseableEntityState<T>, StatelessAnimation<T, *>) -> Boolean = { _, _, _ -> true }
) = BedrockStatefulAnimation(
animationPrefix: String = "animation.$animationGroup"
) = BedrockStatefulAnimation<T>(
BedrockAnimationRepository.getAnimation(animationGroup, "$animationPrefix.$animation"),
preventsIdleCheck
)
fun quirk(
@@ -34,6 +34,8 @@ import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame
import com.cobblemon.mod.common.client.render.models.blockbench.pose.Pose
import com.cobblemon.mod.common.client.render.models.blockbench.quirk.ModelQuirk
import com.cobblemon.mod.common.client.render.models.blockbench.quirk.QuirkData
import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction
import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunctions
import com.cobblemon.mod.common.entity.Poseable
import com.cobblemon.mod.common.util.asExpression
import com.cobblemon.mod.common.util.asIdentifierDefaultingNamespace
@@ -66,27 +68,40 @@ abstract class PoseableEntityState<T : Entity> : Schedulable {
val reusableAnimTime = DoubleValue(0.0) // This gets called 500 million times so use a mutable value for runtime
runtime.environment.getQueryStruct().addFunctions(mapOf(
"anim_time" to java.util.function.Function { return@Function reusableAnimTime.also { it.value = animationSeconds.toDouble() } },
"bedrock_primary" to java.util.function.Function { params ->
val group = params.getString(0)
val animation = params.getString(1)
val anim = currentModel?.bedrockStateful(group, animation) ?: return@Function ObjectValue<Int>(0)
val excludedLabels = mutableSetOf<String>()
var curve: WaveFunction = { t ->
if (t < 0.1) {
t * 10
} else if (t < 0.9) {
1F
} else {
1F
}
}
for (index in 2 until params.params.size) {
val label = params.getString(index) ?: continue
val regex = "curve[ =]+([a-zA-Z0-9]+)".toRegex()
val curveName = regex.find(label)
if (curveName != null && curveName.groupValues.size > 1) {
val curveId = curveName.groupValues[1]
WaveFunctions.functions[curveId]?.let { curve = it }
} else {
excludedLabels.add(label)
}
}
return@Function ObjectValue(PrimaryAnimation(animation = anim, excludedLabels = excludedLabels, curve = curve))
},
"bedrock_stateful" to java.util.function.Function { params ->
val group = params.getString(0)
val animation = params.getString(1)
var preventsIdle = false
var posePauser = false
for (i in 2 until params.params.size) {
val value = params.getString(i).lowercase()
if (value.equals("prevents_idle")) {
preventsIdle = true
} else if (value == "pauses_pose") {
posePauser = true
}
}
val anim = currentModel?.bedrockStateful(group, animation) ?: return@Function ObjectValue<Int>(0)
anim.setPreventsIdle(preventsIdle)
anim.isPosePauserAnimation(posePauser)
return@Function ObjectValue(anim).addFunction(
"prevents_idle", java.util.function.Function { anim.setPreventsIdle(it.getString(0).toBoolean()) }
).addFunction(
"pauses_pose", java.util.function.Function { anim.isPosePauserAnimation = it.getString(0).toBoolean() }
)
return@Function ObjectValue(anim)
},
"pose_type" to java.util.function.Function { return@Function StringValue((getEntity() as Poseable).getPoseType().name) },
"pose" to java.util.function.Function { _ -> return@Function StringValue(currentPose ?: "") },
@@ -216,7 +231,11 @@ abstract class PoseableEntityState<T : Entity> : Schedulable {
fun addFirstAnimation(animation: Set<String>) {
val model = currentModel ?: return
val animation = animation.firstNotNullOfOrNull { model.getAnimation(this, it, runtime) } ?: return
statefulAnimations.add(animation)
if (animation is PrimaryAnimation<T>) {
addPrimaryAnimation(animation)
} else {
addStatefulAnimation(animation)
}
}
fun isPosedIn(vararg poses: Pose<T, in ModelFrame>) = poses.any { it.poseName == currentPose }
@@ -298,7 +317,7 @@ abstract class PoseableEntityState<T : Entity> : Schedulable {
fun shouldIdleRun(idleAnimation: StatelessAnimation<T, *>, requiredIntensity: Float): Boolean {
val primaryAnimation = primaryAnimation
return if (primaryAnimation != null) {
!primaryAnimation.prevents(idleAnimation) && this.primaryOverridePortion >= requiredIntensity
!primaryAnimation.prevents(idleAnimation) || this.primaryOverridePortion > requiredIntensity
} else {
true
}
@@ -10,6 +10,7 @@ package com.cobblemon.mod.common.client.render.models.blockbench.animation
import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityModel
import com.cobblemon.mod.common.client.render.models.blockbench.PoseableEntityState
import com.cobblemon.mod.common.client.render.models.blockbench.frame.ModelFrame
import com.cobblemon.mod.common.client.render.models.blockbench.wavefunction.WaveFunction
import net.minecraft.entity.Entity
@@ -34,11 +35,12 @@ class PrimaryAnimation<T : Entity>(
}
},
val excludedLabels: Set<String> = emptySet(),
) {
val duration = animation.duration
override val isTransform: Boolean = false
): StatefulAnimation<T, ModelFrame> {
var started = -1F
override val duration: Float = animation.duration
fun run(
override fun run(
entity: T?,
model: PoseableEntityModel<T>,
state: PoseableEntityState<T>,
@@ -47,9 +49,9 @@ class PrimaryAnimation<T : Entity>(
ageInTicks: Float,
headYaw: Float,
headPitch: Float,
severity: Float
intensity: Float
): Boolean {
return animation.run(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, severity)
return animation.run(entity, model, state, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, intensity)
}
fun prevents(idleAnimation: StatelessAnimation<T, *>) = idleAnimation.labels.intersect(excludedLabels).isEmpty() && "all" !in excludedLabels
@@ -24,13 +24,7 @@ import net.minecraft.entity.Entity
*/
open class BedrockStatefulAnimation<T : Entity>(
val animation: BedrockAnimation,
var preventsIdleCheck: (T?, PoseableEntityState<T>, StatelessAnimation<T, *>) -> Boolean
) : StatefulAnimation<T, ModelFrame> {
fun setPreventsIdle(preventsIdle: Boolean): BedrockStatefulAnimation<T> {
this.preventsIdleCheck = { _, _, _ -> preventsIdle }
return this
}
var startedSeconds = -1F
var isTransformAnimation = false
override val duration = if (!animation.shouldLoop) animation.animationLength.toFloat() else -1F
@@ -39,10 +33,6 @@ open class BedrockStatefulAnimation<T : Entity>(
override val isTransform: Boolean
get() = isTransformAnimation
fun isTransformAnimation(value: Boolean) = this.also {
it.isTransformAnimation = value
}
fun andThen(action: (entity: T, PoseableEntityState<T>) -> Unit) = this.also {
it.afterAction = action
}
@@ -56,8 +56,8 @@ class PokeBallModel(root: ModelPart) : PoseableEntityModel<EmptyPokeBallEntity>(
transformTicks = 0
)
shut.transitions[open] = { _, _ -> bedrockStateful("poke_ball", "open").isTransformAnimation(true) }
open.transitions[shut] = { _, _ -> bedrockStateful("poke_ball", "shut").isTransformAnimation(true) }
shut.transitions[open] = { _, _ -> bedrockStateful("poke_ball", "open") }
open.transitions[shut] = { _, _ -> bedrockStateful("poke_ball", "shut") }
midair.transitions[open] = shut.transitions[open]!!
}
}
@@ -22,6 +22,7 @@ import com.cobblemon.mod.common.entity.pokemon.PokemonEntity
import com.cobblemon.mod.common.util.adapters.ExpressionLikeAdapter
import com.cobblemon.mod.common.util.adapters.Vec3dAdapter
import com.cobblemon.mod.common.util.asExpressionLike
import com.cobblemon.mod.common.util.getFirst
import com.google.gson.*
import com.google.gson.annotations.SerializedName
import com.google.gson.reflect.TypeToken
@@ -100,7 +101,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
val cry: Supplier<StatefulAnimation<PokemonEntity, ModelFrame>>? = null
override fun getFaintAnimation(pokemonEntity: PokemonEntity, state: PoseableEntityState<PokemonEntity>) = faint?.get()
override val cryAnimation = CryProvider { _, _ -> cry?.get()?.also { if (it is BedrockStatefulAnimation) it.setPreventsIdle(false) } }
override val cryAnimation = CryProvider { _, _ -> cry?.get() }
object JsonModelExclusion: ExclusionStrategy {
override fun shouldSkipField(f: FieldAttributes): Boolean {
@@ -118,7 +119,6 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
}
object StatefulAnimationAdapter : JsonDeserializer<Supplier<StatefulAnimation<PokemonEntity, ModelFrame>>> {
var preventsIdleDefault = true
override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Supplier<StatefulAnimation<PokemonEntity, ModelFrame>> {
json as JsonPrimitive
val animString = json.asString
@@ -137,6 +137,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
}
}
}
object PoseAdapter : JsonDeserializer<Pose<PokemonEntity, ModelFrame>> {
override fun deserialize(json: JsonElement, type: Type, ctx: JsonDeserializationContext): Pose<PokemonEntity, ModelFrame> {
val model = JsonPokemonPoseableModelAdapter.model!!
@@ -150,7 +151,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
val conditionsList = mutableListOf<(PokemonEntity) -> Boolean>()
val animations = json.get("animations")?.asJsonObject?.let {
val animations = json.get("namedAnimations")?.takeIf { it is JsonObject }?.asJsonObject?.let {
val map = mutableMapOf<String, ExpressionLike>()
for ((key, value) in it.entrySet()) {
map[key] = value.asString.asExpressionLike()
@@ -179,7 +180,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
return@map transformation.withPosition(position.x, position.y, position.z).withRotationDegrees(rotation.x, rotation.y, rotation.z).withVisibility(isVisible)
}?.toTypedArray() ?: arrayOf()
val idleAnimations = (obj.get("animations")?.asJsonArray ?: JsonArray()).asJsonArray.mapNotNull {
val idleAnimations = (json.getFirst("idleAnimations", "animations")?.takeIf { it is JsonArray }?.asJsonArray?.mapNotNull {
val animString = it.asString
if (animString == "look") {
return@mapNotNull JsonPokemonPoseableModelAdapter.model!!.singleBoneLook<PokemonEntity>()
@@ -191,7 +192,7 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
}
}
return@mapNotNull null
}.toTypedArray()
}?.toTypedArray() ?: arrayOf())
val quirks = (obj.get("quirks")?.asJsonArray ?: JsonArray()).map { json ->
json as JsonObject
@@ -199,16 +200,12 @@ class JsonPokemonPoseableModel(override val rootPart: Bone) : PokemonPoseableMod
val animations: (state: PoseableEntityState<PokemonEntity>) -> List<StatefulAnimation<PokemonEntity, *>> = { _ ->
(json.get("animations")?.asJsonArray ?: JsonArray()).map { animJson ->
val animString = animJson.asString
val anim = animString.substringBefore("(")
StatefulAnimationAdapter.preventsIdleDefault = false
val animation = if(ANIMATION_FACTORIES.contains(anim)) {
ANIMATION_FACTORIES[anim]?.stateful(model, animString)
} else {
null
}
StatefulAnimationAdapter.preventsIdleDefault = true
animation
}.filterNotNull()
}
@@ -33,7 +33,7 @@ class AerodactylModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var fly: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("aerodactyl", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("aerodactyl", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("aerodactyl", "sleep"))
@@ -41,7 +41,7 @@ class AlakazamModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("alakazam", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("alakazam", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -51,10 +51,10 @@ class ArbokModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
val tail4WaveSegment = WaveSegment(modelPart = tail4, length = 11F)
val tail5WaveSegment = WaveSegment(modelPart = tail5, length = 11F)
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("arbok", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("arbok", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("arbok", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("arbok", "blink") }
// TODO tongue_flick
val wave = WaveAnimation<PokemonEntity>(
@@ -38,7 +38,7 @@ class BeedrillModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BiWi
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beedrill", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("beedrill", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -42,7 +42,7 @@ class BlastoiseModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
override val profileScale = 0.63F
override val profileTranslation = Vec3d(0.0, 0.8, 0.0)
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("blastoise", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("blastoise", "cry") }
lateinit var sleep: PokemonPose
lateinit var standing: PokemonPose
@@ -51,7 +51,7 @@ class BlastoiseModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("blastoise", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("blastoise", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
@@ -36,10 +36,10 @@ class BulbasaurModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bulbasaur", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("bulbasaur", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("bulbasaur", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("bulbasaur", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -35,7 +35,7 @@ class ButterfreeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
lateinit var sleep: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("butterfree", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("butterfree", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -34,10 +34,10 @@ class CaterpieModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("caterpie", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("caterpie", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("caterpie", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("caterpie", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
@@ -33,7 +33,7 @@ class ChanseyModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("chansey", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("chansey", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -50,16 +50,15 @@ class CharizardModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var fly: PokemonPose
override fun registerPoses() {
animations["physical"] = "q.bedrock_stateful('charizard', 'physical', 'prevents_idle')".asExpressionLike()
animations["special"] = "q.bedrock_stateful('charizard', 'special', 'prevents_idle')".asExpressionLike()
animations["status"] = "q.bedrock_stateful('charizard', 'status', 'prevents_idle')".asExpressionLike()
animations["recoil"] = "q.bedrock_stateful('charizard', 'recoil')".asExpressionLike()
animations["physical"] = "q.bedrock_primary('charizard', 'physical', 'look', 'curve=symmetrical_wide')".asExpressionLike()
animations["special"] = "q.bedrock_primary('charizard', 'special', 'curve=symmetrical_wide')".asExpressionLike()
animations["status"] = "q.bedrock_primary('charizard', 'status')".asExpressionLike()
animations["recoil"] = "q.bedrock_primary('charizard', 'recoil')".asExpressionLike()
animations["cry"] = "q.bedrock_primary('charizard', 'cry', 'all')".asExpressionLike()
animations["cry"] = "q.bedrock_stateful('charizard', 'cry', 'pauses_pose')".asExpressionLike()
val faint = "q.bedrock_primary('charizard', 'faint', 'curve=one')".asExpressionLike()
val faint = "q.bedrock_stateful('charizard', 'faint', 'prevents_idle')".asExpressionLike()
val blink = quirk("blink") { bedrockStateful("charizard", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("charizard", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
quirks = arrayOf(blink),
@@ -41,7 +41,7 @@ class CharmanderModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmander", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmander", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -49,7 +49,7 @@ class CharmanderModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
idleAnimations = arrayOf(bedrock("charmander", "sleep"))
)
val blink = quirk("blink") { bedrockStateful("charmander", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("charmander", "blink") }
standing = registerPose(
poseName = "standing",
@@ -39,10 +39,10 @@ class CharmeleonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmeleon", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("charmeleon", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("charmeleon", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("charmeleon", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
@@ -33,10 +33,10 @@ class ClefableModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefable", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefable", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("clefable", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("clefable", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -33,10 +33,10 @@ class ClefairyModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefairy", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("clefairy", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("clefairy", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("clefairy", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -32,7 +32,7 @@ class DiglettModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("diglett", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("diglett", "blink")}
stand = registerPose(
poseName = "stand",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -33,10 +33,10 @@ class DittoModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
lateinit var sleep: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ditto", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ditto", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("ditto", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("ditto", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -32,9 +32,9 @@ class DodrioModel (root: ModelPart) : PokemonPoseableModel() {
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink1 = quirk("blink1") { bedrockStateful("dodrio", "blink1").setPreventsIdle(false) }
val blink2 = quirk("blink2") { bedrockStateful("dodrio", "blink2").setPreventsIdle(false) }
val blink3 = quirk("blink3") { bedrockStateful("dodrio", "blink3").setPreventsIdle(false) }
val blink1 = quirk("blink1") { bedrockStateful("dodrio", "blink1") }
val blink2 = quirk("blink2") { bedrockStateful("dodrio", "blink2") }
val blink3 = quirk("blink3") { bedrockStateful("dodrio", "blink3") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("dodrio", "sleep"))
@@ -32,10 +32,10 @@ class DoduoModel (root: ModelPart) : PokemonPoseableModel() {
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("doduo", "blink1").setPreventsIdle(false) }
val blink2 = quirk("blink2") { bedrockStateful("doduo", "blink2").setPreventsIdle(false) }
val bite = quirk("bite") { bedrockStateful("doduo", "bite_quirk1").setPreventsIdle(false) }
val bite2 = quirk("bite2") { bedrockStateful("doduo", "bite_quirk2").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("doduo", "blink1") }
val blink2 = quirk("blink2") { bedrockStateful("doduo", "blink2") }
val bite = quirk("bite") { bedrockStateful("doduo", "bite_quirk1") }
val bite2 = quirk("bite2") { bedrockStateful("doduo", "bite_quirk2") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -32,7 +32,7 @@ class DragonairModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
// TODO dragonair swish
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("dragonair", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("dragonair", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + MOVING_POSES + UI_POSES,
@@ -47,7 +47,7 @@ class DragoniteModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BiW
lateinit var fly: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("dragonite", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("dragonite", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = UI_POSES + PoseType.STAND,
@@ -30,7 +30,7 @@ class DratiniModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var standing: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("dratini", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("dratini", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + MOVING_POSES + UI_POSES,
@@ -38,7 +38,7 @@ class DrowzeeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("drowzee", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("drowzee", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("drowzee", "sleep"))
@@ -31,9 +31,9 @@ class DugtrioModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("dugtrio", "blink").setPreventsIdle(false)}
val blink2 = quirk("blink2") { bedrockStateful("dugtrio", "blink2").setPreventsIdle(false)}
val blink3 = quirk("blink3") { bedrockStateful("dugtrio", "blink3").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("dugtrio", "blink")}
val blink2 = quirk("blink2") { bedrockStateful("dugtrio", "blink2")}
val blink3 = quirk("blink3") { bedrockStateful("dugtrio", "blink3")}
registerPose(
poseName = "stand",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -49,12 +49,12 @@ class EeveeModel(root: ModelPart) : PokemonPoseableModel(), EaredFrame, HeadedFr
lateinit var shoulderLeft: PokemonPose
lateinit var shoulderRight: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("eevee", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("eevee", "cry") }
val shoulderOffset = 4
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("eevee", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("eevee", "blink") }
stand = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -53,14 +53,14 @@ class EkansModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var sleep: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ekans", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ekans", "cry") }
override fun registerPoses() {
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("ekans", "sleep"))
)
val blink = quirk("blink") { bedrockStateful("ekans", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("ekans", "blink") }
registerPose(
poseName = "normal",
poseTypes = STATIONARY_POSES + MOVING_POSES,
@@ -38,7 +38,7 @@ class ElectabuzzModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("electabuzz", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("electabuzz", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -29,7 +29,7 @@ class ElectrodeModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("electrode", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("electrode", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -33,12 +33,12 @@ class ExeggcuteModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var uiPortrait: PokemonPose
override fun registerPoses() {
val blink1 = quirk("blink") { bedrockStateful("exeggcute", "blink").setPreventsIdle(false) }
val blink2 = quirk("blink") { bedrockStateful("exeggcute", "blink2").setPreventsIdle(false) }
val blink3 = quirk("blink") { bedrockStateful("exeggcute", "blink3").setPreventsIdle(false) }
val blink4 = quirk("blink") { bedrockStateful("exeggcute", "blink4").setPreventsIdle(false) }
val blink5 = quirk("blink") { bedrockStateful("exeggcute", "blink5").setPreventsIdle(false) }
val blink6 = quirk("blink") { bedrockStateful("exeggcute", "blink6").setPreventsIdle(false) }
val blink1 = quirk("blink") { bedrockStateful("exeggcute", "blink") }
val blink2 = quirk("blink") { bedrockStateful("exeggcute", "blink2") }
val blink3 = quirk("blink") { bedrockStateful("exeggcute", "blink3") }
val blink4 = quirk("blink") { bedrockStateful("exeggcute", "blink4") }
val blink5 = quirk("blink") { bedrockStateful("exeggcute", "blink5") }
val blink6 = quirk("blink") { bedrockStateful("exeggcute", "blink6") }
uiPortrait = registerPose(
poseName = "portrait",
poseType = PoseType.PORTRAIT,
@@ -48,10 +48,10 @@ class ExeggutorAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFram
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink1 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink").setPreventsIdle(false) }
val blink2 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink2").setPreventsIdle(false) }
val blink3 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink3").setPreventsIdle(false) }
val blink4 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink4").setPreventsIdle(false) }
val blink1 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink") }
val blink2 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink2") }
val blink3 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink3") }
val blink4 = quirk("blink") { bedrockStateful("exeggutor_alolan", "blink4") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("exeggutor_alolan", "sleep"))
@@ -50,9 +50,9 @@ class ExeggutorModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink1 = quirk("blink") { bedrockStateful("exeggutor", "blink").setPreventsIdle(false) }
val blink2 = quirk("blink") { bedrockStateful("exeggutor", "blink2").setPreventsIdle(false) }
val blink3 = quirk("blink") { bedrockStateful("exeggutor", "blink3").setPreventsIdle(false) }
val blink1 = quirk("blink") { bedrockStateful("exeggutor", "blink") }
val blink2 = quirk("blink") { bedrockStateful("exeggutor", "blink2") }
val blink3 = quirk("blink") { bedrockStateful("exeggutor", "blink3") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("exeggutor", "sleep"))
@@ -35,10 +35,10 @@ class FarfetchdGalarianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFr
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd_galar", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd_galar", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("farfetchd_galar", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("farfetchd_galar", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = PoseType.STATIONARY_POSES + UI_POSES,
@@ -37,13 +37,13 @@ class FarfetchdModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var fly: PokemonPose
lateinit var sleep: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("farfetchd", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("farfetchd", "blink").setPreventsIdle(false) }
val leakflipidle = quirk("leakflipidle", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_idle").setPreventsIdle(false) }
val leakflipwalk = quirk("leakflipwalk", secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_walk").setPreventsIdle(false) }
val wink = quirk("wink", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_wink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("farfetchd", "blink") }
val leakflipidle = quirk("leakflipidle", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_idle") }
val leakflipwalk = quirk("leakflipwalk", secondsBetweenOccurrences = 30F to 120F) { bedrockStateful("farfetchd", "quirk_leakflip_walk") }
val wink = quirk("wink", secondsBetweenOccurrences = 60F to 120F) { bedrockStateful("farfetchd", "quirk_wink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -44,10 +44,10 @@ class FearowModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF
lateinit var hover: PokemonPose
lateinit var fly: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fearow", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("fearow", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("fearow", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("fearow", "blink") }
stand = registerPose(
poseName = "standing",
poseTypes = UI_POSES + PoseType.STAND,
@@ -31,7 +31,7 @@ class FlareonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flareon", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("flareon", "cry") }
override fun registerPoses() {
standing = registerPose(
@@ -32,7 +32,7 @@ class GastlyModel(root: ModelPart) : PokemonPoseableModel() {
override fun registerPoses() {
val blink = quirk(name = "blink") { bedrockStateful("gastly", "blink").setPreventsIdle(false) }
val blink = quirk(name = "blink") { bedrockStateful("gastly", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -31,7 +31,7 @@ class GastlyShinyModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk(name = "blink") { bedrockStateful("gastly_shiny", "blink").setPreventsIdle(false) }
val blink = quirk(name = "blink") { bedrockStateful("gastly_shiny", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -31,7 +31,7 @@ class GeodudeModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("geodude", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("geodude", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("geodude", "sleep"))
@@ -33,10 +33,10 @@ class GolbatModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var fly: PokemonPose
lateinit var battleidle: PokemonPose
// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golbat", "cry").setPreventsIdle(false) }
// override val cryAnimation = CryProvider { _, _ -> bedrockStateful("golbat", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("golbat", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("golbat", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -33,7 +33,7 @@ class GolduckModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var swim: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("golduck", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("golduck", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = UI_POSES + PoseType.STAND,
@@ -36,7 +36,7 @@ class GolemModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFr
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("golem", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("golem", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -34,7 +34,7 @@ class GravelerModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("graveler", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("graveler", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class GrimerModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("grimer", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("grimer", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -39,7 +39,7 @@ class GrowlitheModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("growlithe", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("growlithe", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("growlithe", "sleep"))
@@ -61,7 +61,7 @@ class GyaradosModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
override val profileTranslation = Vec3d(-0.1, 0.65, 0.0)
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("gyarados", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("gyarados", "blink")}
registerPose(
poseName = "land",
poseTypes = STANDING_POSES + UI_POSES,
@@ -32,7 +32,7 @@ class HaunterModel(root: ModelPart) : PokemonPoseableModel() {
val offsetY = -3.0
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("haunter", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("haunter", "blink")}
standing = registerPose(
poseName = "standing",
@@ -43,7 +43,7 @@ class HitmonchanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bi
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("hitmonchan", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("hitmonchan", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -41,7 +41,7 @@ class HitmonleeModel(root: ModelPart) : PokemonPoseableModel(), BipedFrame, Bima
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("hitmonlee", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("hitmonlee", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
@@ -30,7 +30,7 @@ class HorseaModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var swim: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("horsea", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("horsea", "blink") }
standing = registerPose(
poseName = "standing",
poseType = PoseType.STAND,
@@ -38,7 +38,7 @@ class HypnoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedFr
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("hypno", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("hypno", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("hypno", "sleep"))
@@ -39,10 +39,10 @@ class IvysaurModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ivysaur", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("ivysaur", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("ivysaur", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("ivysaur", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
transformTicks = 10,
@@ -33,7 +33,7 @@ class JigglypuffModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("jigglypuff", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("jigglypuff", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("jigglypuff", "sleep"))
@@ -31,7 +31,7 @@ class JolteonModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("jolteon", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("jolteon", "cry") }
override fun registerPoses() {
standing = registerPose(
@@ -31,7 +31,7 @@ class JynxModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
// val blink = quirk("blink") { bedrockStateful("jynx", "blink").setPreventsIdle(false)}
// val blink = quirk("blink") { bedrockStateful("jynx", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -42,7 +42,7 @@ class KadabraModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("kadabra", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("kadabra", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class KakunaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var sleep: PokemonPose
lateinit var standing: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kakuna", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("kakuna", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -31,8 +31,8 @@ class KangaskhanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("kangaskhan", "blink").setPreventsIdle(false)}
val blink2 = quirk("blink2") { bedrockStateful("kangaskhan", "blink2").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("kangaskhan", "blink")}
val blink2 = quirk("blink2") { bedrockStateful("kangaskhan", "blink2")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -29,7 +29,7 @@ class KoffingModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("koffing", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("koffing", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,9 +31,9 @@ class KrabbyModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("krabby", "blink").setPreventsIdle(false)}
val snipLeft = quirk("blink") { bedrockStateful("krabby", "snip_left").setPreventsIdle(false)}
val snipRight = quirk("blink") { bedrockStateful("krabby", "snip_right").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("krabby", "blink")}
val snipLeft = quirk("blink") { bedrockStateful("krabby", "snip_left")}
val snipRight = quirk("blink") { bedrockStateful("krabby", "snip_right")}
standing = registerPose(
poseName = "standing",
@@ -34,7 +34,7 @@ class LaprasModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var underwaterMove: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("lapras", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("lapras", "blink") }
landIdle = registerPose(
poseName = "land_idle",
poseTypes = UI_POSES + PoseType.STAND,
@@ -39,7 +39,7 @@ class LickitungModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("lickitung", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("lickitung", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -32,7 +32,7 @@ class MachampModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("machamp", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("machamp", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class MachokeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("machoke", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("machoke", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class MachopModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("machop", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("machop", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -33,7 +33,7 @@ class MagikarpModel(root: ModelPart) : PokemonPoseableModel() {
override val profileTranslation = Vec3d(0.0, 0.40, 0.0)
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("magikarp", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("magikarp", "blink")}
registerPose(
poseName = "land",
poseTypes = STANDING_POSES + PoseType.PROFILE,
@@ -31,7 +31,7 @@ class MagnemiteModel(root: ModelPart) : PokemonPoseableModel() {
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("magnemite", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("magnemite", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("magnemite", "sleep"))
@@ -31,7 +31,7 @@ class MagnetonModel(root: ModelPart) : PokemonPoseableModel() {
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("magneton", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("magneton", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("magneton", "sleep"))
@@ -33,10 +33,10 @@ class MankeyModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var standing: PokemonPose
lateinit var walk: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mankey", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("mankey", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("mankey", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("mankey", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -42,7 +42,7 @@ class MeowthAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame,
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("meowth_alolan", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("meowth_alolan", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -42,7 +42,7 @@ class MeowthGalarianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("meowth_galarian", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("meowth_galarian", "blink") }
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("meowth_galarian", "sleep"))
@@ -42,7 +42,7 @@ class MeowthModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("meowth", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("meowth", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -29,10 +29,10 @@ class MetapodModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var sleep: PokemonPose
lateinit var standing: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metapod", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("metapod", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("metapod", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("metapod", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("metapod", "sleep"))
@@ -40,7 +40,7 @@ class MewtwoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bimanu
lateinit var fly: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("mewtwo", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("mewtwo", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = UI_POSES + PoseType.STAND,
@@ -35,7 +35,7 @@ class MrmimeModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("mr_mime", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("mr_mime", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class MukModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("muk", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("muk", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -41,7 +41,7 @@ class NidokingModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bipe
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("nidoking", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("nidoking", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -41,8 +41,8 @@ class NidoqueenModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("nidoqueen", "blink").setPreventsIdle(false)}
val spg = quirk("SPG", secondsBetweenOccurrences = 600F to 900F) { bedrockStateful("nidoqueen", "spgs_happy_place").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("nidoqueen", "blink")}
val spg = quirk("SPG", secondsBetweenOccurrences = 600F to 900F) { bedrockStateful("nidoqueen", "spgs_happy_place") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -40,7 +40,7 @@ class NidorinaModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad
lateinit var battleidle: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("nidorina", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("nidorina", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -37,7 +37,7 @@ class NidorinoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quad
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("nidorino", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("nidorino", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -47,7 +47,7 @@ class NinetalesAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFram
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("ninetales_alolan", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("ninetales_alolan", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("ninetales_alolan", "sleep"))
@@ -47,7 +47,7 @@ class NinetalesModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Qua
lateinit var sleep: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("ninetales", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("ninetales", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("ninetales", "sleep"))
@@ -33,7 +33,7 @@ class OddishModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("oddish", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("oddish", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -37,10 +37,10 @@ class OnixModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var sleep: PokemonPose
lateinit var battleidle: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("onix", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("onix", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("onix", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("onix", "blink") }
ui = registerPose(
poseName = "ui",
poseTypes = UI_POSES,
@@ -36,7 +36,7 @@ class ParasModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("paras", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("paras", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES + SHOULDER_POSES,
@@ -40,7 +40,7 @@ class PersianAlolanModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame,
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("persian_alolan", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("persian_alolan", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -40,7 +40,7 @@ class PersianModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Quadr
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("persian", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("persian", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -44,7 +44,7 @@ class PidgeotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped
lateinit var hover: PokemonPose
lateinit var fly: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeot", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeot", "cry") }
override fun registerPoses() {
sleep = registerPose(
@@ -52,7 +52,7 @@ class PidgeotModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Biped
idleAnimations = arrayOf(bedrock("pidgeot", "sleep"))
)
val blink = quirk("blink") { bedrockStateful("pidgeot", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("pidgeot", "blink")}
stand = registerPose(
poseName = "stand",
poseTypes = PoseType.STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + UI_POSES,
@@ -46,14 +46,14 @@ class PidgeottoModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, Bip
lateinit var hover: PokemonPose
lateinit var fly: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeotto", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgeotto", "cry") }
override fun registerPoses() {
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("pidgeotto", "sleep"))
)
val blink = quirk("blink") { bedrockStateful("pidgeotto", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("pidgeotto", "blink")}
stand = registerPose(
poseName = "stand",
poseTypes = STATIONARY_POSES - PoseType.HOVER - PoseType.FLOAT + UI_POSES,
@@ -46,14 +46,14 @@ class PidgeyModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame, BipedF
lateinit var hover: PokemonPose
lateinit var fly: PokemonPose
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgey", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pidgey", "cry") }
override fun registerPoses() {
sleep = registerPose(
poseType = PoseType.SLEEP,
idleAnimations = arrayOf(bedrock("pidgey", "sleep"))
)
val blink = quirk("blink") { bedrockStateful("pidgey", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("pidgey", "blink") }
stand = registerPose(
poseName = "standing",
poseTypes = SHOULDER_POSES + UI_POSES + PoseType.STAND,
@@ -40,10 +40,10 @@ class PikachuModel(root: ModelPart) : PokemonPoseableModel(), HeadedFrame {
val shoulderOffset = 1.5
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pikachu", "cry").setPreventsIdle(false) }
override val cryAnimation = CryProvider { _, _ -> bedrockStateful("pikachu", "cry") }
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("pikachu", "blink").setPreventsIdle(false) }
val blink = quirk("blink") { bedrockStateful("pikachu", "blink") }
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -29,7 +29,7 @@ class PinsirModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var walk: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("pinsir", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("pinsir", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STATIONARY_POSES + UI_POSES,
@@ -31,7 +31,7 @@ class PoliwagModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var swim: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("poliwag", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("poliwag", "blink")}
standing = registerPose(
poseName = "standing",
poseTypes = STANDING_POSES + UI_POSES,
@@ -30,7 +30,7 @@ class PoliwhirlModel(root: ModelPart) : PokemonPoseableModel() {
lateinit var swim: PokemonPose
override fun registerPoses() {
val blink = quirk("blink") { bedrockStateful("poliwhirl", "blink").setPreventsIdle(false)}
val blink = quirk("blink") { bedrockStateful("poliwhirl", "blink")}
sleep = registerPose(
poseType = PoseType.SLEEP,
Loaded 100 of 480 files, more files were not shown because too many files have changed in this diff. Show more