最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網 會員登陸 & 注冊

HypixelBunny.kt

2023-08-23 12:41 作者:Dimples1337_  | 我要投稿
  • /*
    * LiquidBounce Hacked Client
    * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
    * https://github.com/CCBlueX/LiquidBounce/
    */
    package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other


    import net.ccbluex.liquidbounce.event.MoveEvent
    import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode
    import net.ccbluex.liquidbounce.utils.MovementUtil
    import net.ccbluex.liquidbounce.utils.MovementUtils
    import net.minecraft.potion.Potion
    import kotlin.math.cos
    import kotlin.math.sin
    import kotlin.math.sqrt
    /**
    *
    * Skid By DeadStar
    * @Date on 2023/8/22
    *
    */
    class HypixelBunny : SpeedMode("HypixelBunny") {
    ? ?private fun getSpeedPotion(): Int {
    ? ? ? ?return if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1 else 0
    ? ?}

    ? ?fun getMoveYaw(): Float {
    ? ? ? ?var moveYaw = mc.thePlayer.rotationYaw
    ? ? ? ?if (mc.thePlayer.moveForward != 0f && mc.thePlayer.moveStrafing == 0f) {
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveForward > 0) 0 else 180).toFloat()
    ? ? ? ?} else if (mc.thePlayer.moveForward != 0f && mc.thePlayer.moveStrafing != 0f) {
    ? ? ? ? ? ?if (mc.thePlayer.moveForward > 0) moveYaw += (if (mc.thePlayer.moveStrafing > 0) -45 else 45).toFloat() else moveYaw -= (if (mc.thePlayer.moveStrafing > 0) -45 else 45).toFloat()
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveForward > 0) 0 else 180).toFloat()
    ? ? ? ?} else if (mc.thePlayer.moveStrafing != 0f && mc.thePlayer.moveForward == 0f) {
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveStrafing > 0) -90 else 90).toFloat()
    ? ? ? ?}
    ? ? ? ?return moveYaw
    ? ?}

    ? ? ? private fun setMoveSpeed() {
    ? ? ? ?var yaw = getMoveYaw();
    ? ? ? ? ? var speed = MovementUtils.getSpeed()
    ? ? ? ?if (mc.thePlayer.moveForward != 0.toFloat() || mc.thePlayer.moveStrafing != 0.toFloat()) {
    ? ? ? ? ? ?mc.thePlayer.motionX = -sin(Math.toRadians(yaw.toDouble())) * speed;
    ? ? ? ? ? ?mc.thePlayer.motionZ = cos(Math.toRadians(yaw.toDouble())) * speed;
    ? ? ? ?}
    ? ?}

    ? ?override fun onMotion() {
    ? ?}

    ? ?override fun onDisable() {
    ? ?}

    ? ?override fun onMove(event: MoveEvent?) {}
    ? ?override fun onUpdate() {
    ? ? ? ?if (mc.thePlayer.onGround && (mc.thePlayer.moveForward != 0.toFloat() || mc.thePlayer.moveStrafing != 0.toFloat())) {
    ? ? ? ? ? ?mc.thePlayer.jump();

    ? ? ? ? ? ?setMoveSpeed()
    ? ? ? ?}
    ? ?}

    }



HypixelBunny.kt的評論 (共 條)

分享到微博請遵守國家法律
桐乡市| 英吉沙县| 浑源县| 蒲江县| 富裕县| 叙永县| 米泉市| 马边| 卓资县| 夹江县| 江城| 玛纳斯县| 河曲县| 姜堰市| 彭泽县| 德阳市| 玛沁县| 德格县| 廊坊市| 科尔| 柯坪县| 德江县| 武宁县| 柞水县| 永寿县| 凉城县| 巴南区| 清水河县| 托克托县| 日土县| 天祝| 陕西省| 温州市| 二手房| 志丹县| 利川市| 遂昌县| 和硕县| 龙口市| 敦煌市| 宁阳县|