├── .gitattributes ├── Animator.lua ├── Emotion.lua ├── README.md ├── animations.cs ├── browser.lua ├── bub.lua ├── emotions.cs ├── luac.exe ├── mole.lua ├── sources ├── PacketOpcodesUtils.java ├── PacketWindSeedClientNotify.java ├── WindSeedClientNotifyOuterClass.java └── WindyCommand.java └── uid.lua /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Animator.lua: -------------------------------------------------------------------------------- 1 | local function find_active_char() 2 | local avatarroot = CS.UnityEngine.GameObject.Find("/EntityRoot/AvatarRoot") 3 | for i = 0, avatarroot.transform.childCount - 1 do 4 | local child = avatarroot.transform:GetChild(i) 5 | if child.gameObject.activeInHierarchy then 6 | return child.gameObject 7 | end 8 | end 9 | end 10 | 11 | local function find_body(avatar) 12 | for i = 0, avatar.transform.childCount - 1 do 13 | local transform = avatar.transform:GetChild(i) 14 | 15 | if transform.name == "OffsetDummy" then 16 | return transform 17 | end 18 | end 19 | end 20 | 21 | local function AnimChanger() 22 | local avatar = find_active_char() 23 | CS.MoleMole.ActorUtils.ShowMessage(find_body(avatar):GetChild(0).name) 24 | local obj = find_body(avatar):GetChild(0) 25 | local ac = obj:GetComponent("Animator") 26 | ac:Play("Standby2ClimbA", 0) --Включить анимацию 27 | --ac:Rebind() --Отключить анимацию 28 | end 29 | 30 | local function onError(error) 31 | CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID"):GetComponent("Text").text = tostring(error) 32 | CS.MoleMole.ActorUtils.ShowMessage(tostring(error)) 33 | end 34 | 35 | xpcall(AnimChanger, onError) 36 | -------------------------------------------------------------------------------- /Emotion.lua: -------------------------------------------------------------------------------- 1 | local function find_active_char() 2 | local avatarroot = CS.UnityEngine.GameObject.Find("/EntityRoot/AvatarRoot") 3 | for i = 0, avatarroot.transform.childCount - 1 do 4 | local child = avatarroot.transform:GetChild(i) 5 | if child.gameObject.activeInHierarchy then 6 | return child.gameObject 7 | end 8 | end 9 | end 10 | 11 | local function find_body(avatar) 12 | for i = 0, avatar.transform.childCount - 1 do 13 | local transform = avatar.transform:GetChild(i) 14 | 15 | if transform.name == "OffsetDummy" then 16 | return transform 17 | end 18 | end 19 | end 20 | 21 | local function EmoChanger() 22 | local avatar = find_active_char() 23 | CS.MoleMole.ActorUtils.ShowMessage(find_body(avatar):GetChild(0).name) 24 | local obj = find_body(avatar):GetChild(0) 25 | local emo = obj:GetComponent("EmoSync") 26 | emo:SetEmotion("Surprise05",0) 27 | emo:SetPhoneme("P_TalkAngry331",0) 28 | emo:EmoFinish() 29 | end 30 | 31 | local function onError(error) 32 | CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID"):GetComponent("Text").text = tostring(error) 33 | CS.MoleMole.ActorUtils.ShowMessage(tostring(error)) 34 | end 35 | 36 | xpcall(EmoChanger, onError) 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SobSeed 2 | omg owo some stuff for certain sussy sob lua framework 3 | there are sources and batch of script; thanks besties DiXiao#6611 and yarik0chka#3602 for scripts 4 | 5 | # for scripts 6 | just place ur script to C:/Windy/*.luac, and /w 7 | for making scripts just take ur .lua, drag to special luac.exe, rename and here you are 8 | 9 | # for implementing dat sobseed 10 | take that files in sources and just change it at correct paths in ur gc src u stupid ass 11 | -------------------------------------------------------------------------------- /animations.cs: -------------------------------------------------------------------------------- 1 | // Action Control V1 2 | // This is to change the animation (Not custom animation though..) 3 | 4 | 5 | //Animations 6 | SlipFaceWall 不知道是啥 7 | SlipBackWall 不知道是啥 8 | DropDown 落地 9 | JumpOffWall 跳出墙面 10 | Jump 跳跃 11 | JumpForRun 奔跑跳跃 12 | JumpForWalk 步行跳跃 13 | Fly 飞翔 14 | FlyStart 开始飞 15 | JumpForSprint 跳跃冲刺 16 | SwimIdle 游泳 17 | SwimMove 游泳运动 18 | SwimDash 游泳冲刺 19 | ClimbMove1 攀爬移动1 20 | ClimbIdle 爬行待机 21 | ClimbJump 攀登跳跃 22 | ClimbMove0 攀爬移动1 23 | FallToGroundRun 落地跑 24 | FallOnGroundLit 落地Lit 25 | FallOnGround 落地 26 | FallToGroundRunHard 落地翻滚 27 | FallToGroundSprint 落地跑 28 | Walk 走 29 | Run 跑 30 | Standby 待机 31 | RunToIdle 停止奔跑 32 | RunToWalk 奔跑到步行 33 | WalkToIdle 步行至停顿 34 | WalkToRun 步行到跑步 35 | Sprint 冲刺 36 | SprintToIdle 怠速冲刺 37 | SprintToRun 冲刺到跑步 38 | ClimbDownToGround 攀爬到地面 39 | SprintBS 冲刺BS 40 | ShowUp 上场 41 | CrouchToStandby 蹲下待机 42 | CrouchIdle 蹲下闲置 43 | CrouchRoll 蹲下翻滚 44 | CrouchMove 蹲下移动 45 | SkiffNormal 正常情况 46 | Upstairs 上楼 47 | JumpUpWallForStandby 跳上墙待机 48 | JumpUpWallReady 跳上墙准备 49 | Standby2ClimbA 爬墙待机A 50 | SwimJump 游泳跳跃 51 | SwimJumpDrop 游泳跳下 52 | SwimJumpToWater 游泳跳到水里 53 | Standby2ClimbB 爬墙待机B 54 | CrouchDrop 召唤上升气流(bushi 55 | TurnDir 转移方向 56 | StandbyWeapon 武器待机 57 | StandbyPutaway 收武器 58 | StandbyPutawayOver 召唤武器 59 | Icespine_Out E收扇子 60 | Icespine 凌华的E技能 61 | LiquidStrike_MoveStandby 液体模式(莫娜和凌华的冲刺模式 62 | LiquidStrike_AS 液体模式_AS 63 | LiquidStrike_BS 液体模式_BS 64 | LiquidStrike_BS1 液体模式_BS1 65 | LiquidStrike_Move 液体模式_Move 66 | LiquidStrike_Strike 液体模式_Strike 67 | LiquidStrike_FatalStandby 液体模式_FatalStandby 68 | LiquidStrike_FatalMove 液体模式_FatalMove 69 | LiquidStrike_AS_OnWater 液体模式_AS_OnWater 70 | LiquidStrike_BS_0 液体模式_BS_0 71 | FrozenWindmill 大招动画(可以改成你当前角色的 默认是凌华的 72 | FrozenWindmill_AS 大招动画_AS 73 | Attack03 攻击03 74 | Attack04 攻击04 75 | Attack05 攻击05 76 | Attack01 攻击01 77 | Attack02 攻击02 78 | ExtraAttack 重击 79 | ExtraAttack_AS 重击_AS 80 | FallingAnthem_Loop 下落攻击_Loop 81 | FallingAnthem_AS_2 下落攻击_AS_2 82 | FallingAnthem_BS_1 下落攻击_BS_1 83 | FallingAnthem_BS_2 下落攻击_BS_2 84 | FallingAnthem_AS_1 下落攻击_AS_1 85 | FallingAnthem_Loop_Low 下落攻击_Loop_Low 86 | SitBDown 高脚凳坐下 87 | SitBLoop 高脚凳坐_Loop 88 | SitBUp 高脚凳坐_起来 89 | SitDown 坐下 90 | SitLoop 坐_Loop 91 | SitUp 坐_起来 92 | StandbyShow_01 待机动画_01 93 | StandbyShow_02 待机动画_02 94 | StandbyVoice 待机语音 95 | Think01BS 思考01_BS 96 | Think01Loop 思考01_Loop 97 | Think01AS 思考01_AS 98 | Akimbo02BS 单手叉腰_BS 99 | Akimbo02Loop 单手叉腰_Loop 100 | Akimbo02AS 单手叉腰_AS 101 | ChannelBS 紫薇等一下(bushi 102 | ChannelLoop 伸胳膊_Loop 103 | ChannelAS 伸胳膊_AS 104 | PlayMusic_Lyre_AS 风物之琴_AS 105 | PlayMusic_Lyre_BS 风物之琴_BS 106 | PlayMusic_Lyre_Loop 风物之琴_Loop 107 | PlayMusic_Qin_BS 镜花之琴_BS 108 | PlayMusic_Qin_AS 镜花之琴_AS 109 | PlayMusic_Qin_Loop 镜花之琴_Loop 110 | ActivitySkill_ElectricCoreFly 原地风之翼 111 | Hit_H 受击_H 112 | Hit_L 受击_L 113 | Hit_Throw 受击_砸中 114 | Hit_Throw_Ground 受击_地板溅射 115 | Hit_ThrowAir 受击_空中砸中 116 | Struggle 受击_翻滚 117 | NormalDie 正常死亡 118 | SwimDie 淹死 119 | HitGroundDie 被砸死在地上 120 | FallDie_AS 摔死_AS 121 | FallDie 摔死 122 | 123 | //Main Character 124 | UziExplode_AS 风主E技能_AS 125 | UziExplode_BS 风主E技能_BS 126 | UziExplode_Charge_01 风主E技能_01 127 | UziExplode_Strike_02 风主E技能_02 128 | UziExplode_Charge_02 风主E技能_02 129 | UziExplode_Strike_01 风主E技能_01 130 | UziExplode_BS_1 风主E技能_BS_1 131 | WindBreathe_AS 风主大招_AS 132 | WindBreathe 风主大招 133 | Hogyoku_AS 荒星_AS 134 | Hogyoku_BS 荒星_BS 135 | Hogyoku 荒星 136 | Hogyoku_Charge 荒星_瞄准 137 | Hogyoku_Charge_AS 荒星_瞄准_AS 138 | Hogyoku_Charge_2 荒星落 139 | RockTide_AS 岩主大招_AS 140 | RockTide 岩主大招 141 | CrouchThrowBS 蹲下抛物线BS 142 | CrouchThrowLoop 蹲下抛物线Loop 143 | CrouchThrowAS 蹲下抛物线AS 144 | FindCatThrowBS 寻找猫咪抛物线BS 145 | FindCatThrowLoop 寻找猫咪抛物线Loop 146 | FindCatThrowAS 寻找猫咪抛物线AS 147 | Player_Electric_ElementalArt 雷主E技能 148 | Player_Electric_ElementalArt_AS 雷主E技能_AS 149 | Player_Electric_ElementalBurst 雷主大招 150 | Player_Electric_ElementalBurst_AS 雷主大招_AS 151 | PutHand01BS 递空气01BS 152 | PutHand01Loop 递空气oop 153 | PutHand01AS 递空气01AS 154 | Akimbo01BS 双手叉腰01BS 155 | Backrake01BS 达咩01BS 156 | Forerake01BS 期待01BS 157 | StrikeChest01BS 坚信01BS 158 | Akimbo01Loop 双手叉腰01Loop 159 | Akimbo01AS 双手叉腰01AS 160 | Backrake01Loop 达咩01Loop 161 | Backrake01AS 达咩01AS 162 | Forerake01Loop 期待01Loop 163 | Forerake01AS 期待01AS 164 | StrikeChest01Loop 坚信01Loop 165 | StrikeChest01AS 坚信01AS 166 | HoldHead01BS 扶额01BS 167 | HoldHead01Loop 扶额01环 168 | HoldHead01AS 扶额01AS 169 | Clap01 鼓掌01 170 | Turn01_90LBS 转向01_90LBS 171 | Turn01_90RBS 转向01_90RBS 172 | Turn01_90LAS 转向01_90LAS 173 | Turn01_90RAS 转向01_90RAS 174 | Alert01BS 警惕01BS 175 | Alert01Loop 警惕01Loop 176 | Alert01AS 警惕01AS 177 | Fishing01_BS 钓鱼01_BS 178 | Fishing01Loop 钓鱼01环 179 | Fishing01AS 钓鱼01AS 180 | Think01_BS 思考01_BS 181 | Think01_Loop 思考01_Loop 182 | Think01_AS 思考01_AS 183 | Channel01BS 伸胳膊01BS 184 | Channel01Loop 伸胳膊01Loop 185 | Channel01AS 伸胳膊01AS 186 | Fishing_Battle_BS 钓鱼_Battle_BS 187 | Fishing_Cast_AS 钓鱼_绑鱼饵_AS 188 | Fishing_Cast_BS 钓鱼_绑鱼饵_BS 189 | Fishing_Cast_Loop 钓鱼_绑鱼饵_循环 190 | Fishing_Choose 钓鱼_选择 191 | Fishing_Choose_Loop 钓鱼_选择_Loop 192 | Fishing_End 钓鱼_结束 193 | Fishing_Pull_01 钓鱼_01 194 | Fishing_Pull_02 钓鱼_02 195 | Fishing_Wait 钓鱼_等待 196 | Fishing_Pull_Fail 钓鱼_失败 197 | Bartender_MixingStandby 调酒师待命 198 | Bartender_MixingStart 调酒师开始调酒 199 | Bartender_MixingToPour 调酒师的搅拌 200 | Bartender_Pour 调酒师倒酒 201 | Bartender_PourFinish 调酒师倒酒结束 202 | Bartender_PourStandby 调酒师的待机状态 203 | Bartender_AddLoop 调酒师_添加循环 204 | Bartender_PrepareStart 调酒师准备开始 205 | Bartender_Standby 调酒师_待机 206 | Bartender_AddStandby 调酒师_添加待机 207 | Bartender_PrepareToStandby 调酒师准备待机 208 | Bartender_StandbyFinish 调酒师_待机结束 209 | Blocking_BS 招架_BS 210 | Blocking_Loop 招架_循环 211 | Blocking_Back 招架_返回 212 | Blocking_Bounce 招架_反弹 213 | Blocking_Hit 招架_命中 214 | Blocking_AS 招架_AS 215 | //Run 216 | //Get Character Path 217 | var obj = GameObject.Find("EntityRoot/AvatarRoot/Avatar_Girl_Sword_Ayaka(Clone)/OffsetDummy/Avatar_Girl_Sword_Ayaka"); 218 | var ac = obj.GetComponent(); 219 | //Playback 220 | ac.Play("FallDie"); 221 | 222 | //The following paragraph is executed separately to reset the action when the card master is used 223 | var obj = GameObject.Find("EntityRoot/AvatarRoot/Avatar_Girl_Sword_Ayaka(Clone)/OffsetDummy/Avatar_Girl_Sword_Ayaka"); 224 | var ac = obj.GetComponent(); 225 | ac.Rebind(); 226 | 227 | //Print character actions to Log (to be used when needed) 228 | // var obj = GameObject.Find("EntityRoot/AvatarRoot/Avatar_Boy_Sword_PlayerBoy(Clone)/OffsetDummy/Avatar_Boy_Sword_PlayerBoy"); 229 | // var ac = obj.GetComponent(); 230 | // foreach(string str in ac._stateNames) 231 | // { 232 | // Log(str); 233 | // } -------------------------------------------------------------------------------- /browser.lua: -------------------------------------------------------------------------------- 1 | local function findActiveAvatar() 2 | local avatarRoot = CS.UnityEngine.GameObject.Find("/EntityRoot/AvatarRoot") 3 | if avatarRoot.transform.childCount == 0 then 4 | return 5 | end 6 | for i = 0, avatarRoot.transform.childCount - 1 do 7 | local avatar = avatarRoot.transform:GetChild(i) 8 | if avatar.gameObject.activeInHierarchy then 9 | return avatar.gameObject 10 | end 11 | end 12 | end 13 | 14 | local function findAvatarBody(avatar) 15 | for i = 0, avatar.transform.childCount - 1 do 16 | local transform = avatar.transform:GetChild(i) 17 | if transform.name == "OffsetDummy" then 18 | for j = 0, transform.childCount - 1 do 19 | local child = transform:GetChild(j) 20 | for k = 0, child.transform.childCount - 1 do 21 | local body = child.transform:GetChild(k) 22 | if body.name == "Body" then 23 | return body.gameObject 24 | end 25 | end 26 | end 27 | end 28 | end 29 | end 30 | local function createPrimitive() 31 | local nowAvatar = findActiveAvatar() 32 | local nowBody = findAvatarBody(nowAvatar) 33 | local primitive = CS.UnityEngine.GameObject.CreatePrimitive(CS.UnityEngine.PrimitiveType.Plane); 34 | primitive.transform.localScale = CS.UnityEngine.Vector3(3.2,1,1.8); 35 | primitive.transform.localRotation = CS.UnityEngine.Quaternion(0.5, 0.5,-0.5, 0.5); 36 | local position = nowBody.transform.position 37 | primitive.transform.position = CS.UnityEngine.Vector3(position.x, position.y + 5, position.z); 38 | local browser = primitive:AddComponent(typeof(CS.ZenFulcrum.EmbeddedBrowser.Browser)); 39 | browser._url = "https://google.com"; 40 | browser._width = 1920; 41 | browser._height = 1080; 42 | end 43 | function start() 44 | createPrimitive() 45 | CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID"):GetComponent("Text").text = "sob" 46 | end 47 | 48 | start() 49 | -------------------------------------------------------------------------------- /bub.lua: -------------------------------------------------------------------------------- 1 | local function find_active_char() 2 | local avatarroot = CS.UnityEngine.GameObject.Find("/EntityRoot/AvatarRoot") 3 | --Loop through all the children of the avatar root 4 | for i = 0, avatarroot.transform.childCount - 1 do 5 | local child = avatarroot.transform:GetChild(i) 6 | --If the child is active, return it 7 | if child.gameObject.activeInHierarchy then 8 | return child.gameObject 9 | end 10 | end 11 | end 12 | 13 | local function find_body(avatar) 14 | for i = 0, avatar.transform.childCount - 1 do 15 | local transform = avatar.transform:GetChild(i) 16 | 17 | if transform.name == "OffsetDummy" then 18 | for j = 0, transform.childCount - 1 do 19 | local child = transform:GetChild(j) 20 | 21 | for k = 0, child.transform.childCount - 1 do 22 | local body = child.transform:GetChild(k) 23 | 24 | if body.name == "Body" then 25 | return body.gameObject 26 | end 27 | end 28 | end 29 | end 30 | end 31 | end 32 | 33 | local function booba2() 34 | local avatar = find_active_char() 35 | CS.MoleMole.ActorUtils.ShowMessage(avatar.name) 36 | 37 | if avatar then 38 | local body = find_body(avatar) 39 | 40 | local bones = body.transform:GetComponent(typeof(CS.UnityEngine.SkinnedMeshRenderer)).bones 41 | local booba = nil 42 | 43 | --Iterate over bones to find boobs 44 | for i = 0, bones.Length - 1 do 45 | local bone = bones[i] 46 | if bone.name == "Booba" then --We already made a boobs container earlier 47 | booba = bone 48 | break 49 | end 50 | end 51 | 52 | if booba == nil then 53 | --We need to make a boobs container 54 | local booba_r = nil 55 | local booba_l = nil 56 | for i = 0, bones.Length - 1 do 57 | local bone = bones[i] 58 | if bone.name == "+Breast L A01" then 59 | booba_l = bone 60 | elseif bone.name == "+Breast R A01" then 61 | booba_r = bone 62 | end 63 | end 64 | if booba_r == nil or booba_l == nil then 65 | CS.MoleMole.ActorUtils.ShowMessage("404 boob not found") 66 | return 67 | end 68 | local boob_parent = booba_l.transform.parent --Should be /Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Spine2/ 69 | 70 | --Make new boobs container 71 | booba = CS.UnityEngine.GameObject("Booba") 72 | booba.transform.parent = boob_parent.transform 73 | booba.transform.localScale = CS.UnityEngine.Vector3(-1, -1, -1) 74 | booba.transform.rotation = boob_parent.transform.rotation 75 | booba.transform.position = boob_parent.transform.position 76 | 77 | --Reparent boob bones to this container 78 | booba_l.transform.parent = booba.transform 79 | booba_r.transform.parent = booba.transform 80 | end 81 | 82 | local scaling_mul = 2 83 | booba.transform.localScale = CS.UnityEngine.Vector3(scaling_mul, scaling_mul, scaling_mul) 84 | end 85 | end 86 | 87 | local function onError(error) 88 | CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID"):GetComponent("Text").text = tostring(error) 89 | CS.MoleMole.ActorUtils.ShowMessage(tostring(error)) 90 | end 91 | 92 | xpcall(booba2, onError) 93 | -------------------------------------------------------------------------------- /emotions.cs: -------------------------------------------------------------------------------- 1 | //Emotion control V1 ---- from this ghost key-value pairs collection simply can 2 | //not print Keys can only manually copy and paste 252 times plus translation almost tired of memory loss 3 | //At this stage, you need to enter the photo interface to use 4 | //The following is the list of expressions I have translated for you 5 | //Translated by DeepL (anyone is guest to translate it) 6 | 7 | //Eye expressions 8 | Normal 正常的 9 | Anger 愤怒 10 | Happy 快乐 11 | Fear 恐惧 12 | Sad 悲伤 13 | Disgust 厌恶 14 | Surprise 惊奇 15 | Puzzled 疑惑 16 | EyeClosed 闭上眼睛 17 | Shy 羞涩 18 | Serious 严肃 19 | Naughty 顽皮的 20 | Wink 眨眼 21 | Laugh 欢笑 22 | Hope 希望 23 | Upset 苦恼 24 | Tired 疲惫 25 | Sweat 汗水 26 | Angry01 愤怒01 27 | Angry02 愤怒02 28 | Angry03 愤怒03 29 | Angry04 愤怒04 30 | Angry05 愤怒05 31 | Angry06 愤怒06 32 | Closed01 关闭01 33 | Closed02 关闭02 34 | Closed03 关闭03 35 | Closed04 关闭04 36 | Closed05 关闭05 37 | Happy01 快乐01 38 | Happy02 快乐02 39 | Happy03 快乐03 40 | Happy04 快乐04 41 | Happy05 快乐05 42 | Normal01 正常01 43 | Normal02 正常02 44 | Normal03 正常03 45 | Normal04 正常04 46 | Normal05 正常05 47 | Normal06 正常06 48 | Sad01 悲伤01 49 | Sad02 悲伤02 50 | Sad03 悲伤03 51 | Sad04 悲伤04 52 | Sad05 悲伤05 53 | Surprise01 惊喜01 54 | Surprise02 惊喜02 55 | Surprise03 惊奇03 56 | Surprise04 惊喜04 57 | Surprise05 惊喜05 58 | Sweat01 汗水01 59 | Sweat02 汗水02 60 | Sweat03 汗水03 61 | Sweat04 汗水04 62 | Sweat05 汗水05 63 | Tired01 累01 64 | Tired02 累02 65 | Tired03 累03 66 | Tired04 累04 67 | Tired05 累05 68 | "" 空值 69 | Default 默认值 70 | Angry_01 愤怒_01 71 | Angry_02 愤怒_02 72 | Angry_03 愤怒_03 73 | Angry_04 愤怒_04 74 | Default_01 默认_01 75 | Doubt_01 怀疑_01 76 | Doubt_02 怀疑_02 77 | Doubt_03 怀疑_03 78 | Doubt_04 怀疑_04 79 | Gentle_01 温柔_01 80 | Gentle_02 温柔_02 81 | Gentle_03 温柔_03 82 | Gentle_04 温柔_04 83 | HiClosed_01 高闭合_01 84 | HiClosed_02 高闭合_02 85 | HiClosed_03 高闭合_03 86 | HiClosed_04 高闭合_04 87 | HiClosed_05 高闭合_05 88 | HiClosed_06 高闭合_06 89 | HiClosed_07 高闭合_07 90 | LowClosed_01 低闭合_01 91 | LowClosed_02 低闭合_02 92 | LowClosed_03 低闭合_03 93 | LowClosed_04 低闭合_04 94 | LowClosed_05 低闭合_05 95 | LowClosed_06 低闭合_06 96 | LowClosed_07 低闭合_07 97 | MidClosed_01 中低闭合_01 98 | MidClosed_02 中低闭合_02 99 | MidClosed_03 中低闭合_03 100 | MidClosed_04 中低闭合_04 101 | MidClosed_05 中低闭合_05 102 | MidClosed_06 中低闭合_06 103 | MidClosed_07 中低闭合_07 104 | Normal_01 正常_01 105 | Normal_02 正常_02 106 | Normal_03 正常_03 107 | Normal_04 正常_04 108 | Normal_05 正常_05 109 | Surprise_01 惊喜_01 110 | Surprise_02 惊喜_02 111 | Sweat_01 汗水_01 112 | Sweat_02 汗水_02 113 | Sweat_03 汗水_03 114 | Sweat_04 汗水_04 115 | 116 | //Mouth Expression 117 | P_None 无 118 | P_A A 119 | P_O O 120 | P_E E 121 | P_I I 122 | P_U U 123 | P_N N 124 | P_Smile01 微笑01 125 | P_Smile02 微笑02 126 | P_Smile03 微笑03 127 | P_Smile04 微笑04 128 | P_Smile05 微笑05 129 | P_Smile06 微笑06 130 | P_Angry01 愤怒01 131 | P_Angry02 愤怒02 132 | P_Angry03 愤怒03 133 | P_Angry04 愤怒04 134 | P_Doya01 多亚01 135 | P_Doya02 多亚02 136 | P_Pero01 吐舌01 137 | P_Pero02 吐舌02 138 | P_Neko01 猫01 139 | P_Neko02 猫02 140 | P_Delta01 德尔塔01 141 | P_Delta02 德尔塔02 142 | P_Square01 方形01 143 | P_Line01 线条01 144 | P_TalkNone01 谈话01 145 | P_TalkNone02 谈话02 146 | P_TalkNone03 谈话03 147 | P_TalkSmile01 谈笑风生01 148 | P_TalkSmile02 谈笑风生02 149 | P_TalkSmile03 谈笑风生03 150 | P_TalkAngry01 愤怒的谈话01 151 | P_TalkAngry02 愤怒的谈话02 152 | P_TalkAngry03 愤怒的谈话03 153 | P_TalkNone04 谈话04 154 | P_TalkDoya01 谈论多亚01 155 | P_TalkSquare01 谈话方形01 156 | P_TalkDelta01 谈话德尔塔01 157 | P_TalkSmile04 谈笑风生04 158 | P_Default 默认值 159 | P_Default01 默认01 160 | P_Normal01 正常01 161 | P_Doya03 多亚03 162 | P_Angry05 愤怒05 163 | P_Fury01 愤怒01 164 | P_A01 A01 165 | P_I01 I01 166 | P_U01 U01 167 | P_E01 E01 168 | P_O01 O01 169 | P_N01 N01 170 | P_TalkNormal121 谈话正常121 171 | P_TalkNormal122 谈话正常122 172 | P_TalkNormal131 谈话正常131 173 | P_TalkNormal132 谈话正常132 174 | P_TalkNormal221 谈话正常221 175 | P_TalkNormal222 谈话正常222 176 | P_TalkNormal231 谈话正常231 177 | P_TalkNormal232 谈话正常232 178 | P_TalkNormal321 谈话正常321 179 | P_TalkNormal322 谈话正常322 180 | P_TalkNormal331 谈话正常331 181 | P_TalkSmile121 谈笑风生121 182 | P_TalkSmile122 谈笑风生122 183 | P_TalkSmile131 谈笑风生131 184 | P_TalkSmile132 谈笑风生132 185 | P_TalkSmile221 谈笑风生221 186 | P_TalkSmile222 谈笑风生222 187 | P_TalkSmile231 谈笑风生231 188 | P_TalkSmile232 谈笑风生232 189 | P_TalkSmile321 谈笑风生321 190 | P_TalkSmile322 谈笑风生322 191 | P_TalkSmile331 谈笑风生331 192 | P_TalkAngry121 怒谈话谈愤121 193 | P_TalkAngry122 怒谈话谈愤122 194 | P_TalkAngry131 怒谈话谈愤131 195 | P_TalkAngry132 怒谈话谈愤132 196 | P_TalkAngry221 怒谈话谈愤221 197 | P_TalkAngry222 怒谈话谈愤222 198 | P_TalkAngry231 怒谈话谈愤231 199 | P_TalkAngry232 怒谈话谈愤232 200 | P_TalkAngry321 怒谈话谈愤321 201 | P_TalkAngry322 怒谈话谈愤322 202 | P_TalkAngry331 怒谈话谈愤331 203 | P_Default_01 默认_01 204 | P_A_01 A_01 205 | P_I_01 I_01 206 | P_U_01 U_01 207 | P_E_01 E_01 208 | P_O_01 O_01 209 | P_N_01 N_01 210 | P_Angry_01 愤怒_01 211 | P_Angry_02 愤怒_02 212 | P_Angry_03 愤怒_03 213 | P_Angry_04 愤怒_04 214 | P_Angry_05 愤怒_05 215 | P_Doya_01 多亚_01 216 | P_Doya_02 多亚_02 217 | P_Doya_03 多亚_03 218 | P_Fury_01 愤怒_01 219 | P_Neko_01 猫_01 220 | P_Neko_02 猫_02 221 | P_Normal_01 正常_01 222 | P_Smile_01 微笑_01 223 | P_Smile_02 微笑_02 224 | P_Smile_03 微笑_03 225 | P_Smile_04 微笑_04 226 | P_Smile_05 微笑_05 227 | P_Talk_Angry_121 谈话_愤怒_121 228 | P_Talk_Angry_122 说话_愤怒_122 229 | P_Talk_Angry_131 说话_愤怒_131 230 | P_Talk_Angry_132 说话_愤怒_132 231 | P_Talk_Angry_221 说话_愤怒_221 232 | P_Talk_Angry_222 说话_愤怒_222 233 | P_Talk_Angry_231 说话_愤怒_231 234 | P_Talk_Angry_232 说话_愤怒_232 235 | P_Talk_Angry_321 说话_愤怒_321 236 | P_Talk_Angry_322 说话_愤怒_322 237 | P_Talk_Angry_331 说话_愤怒_331 238 | P_Talk_Normal_121 说话_正常_121 239 | P_Talk_Normal_122 说话_正常_122 240 | P_Talk_Normal_131 说话_正常_131 241 | P_Talk_Normal_132 说话_正常_132 242 | P_Talk_Normal_221 说话_正常_221 243 | P_Talk_Normal_222 说话_正常_222 244 | P_Talk_Normal_231 谈话_正常_231 245 | P_Talk_Normal_232 说话_正常_232 246 | P_Talk_Normal_321 谈话_正常_321 247 | P_Talk_Normal_322 说话_正常_322 248 | P_Talk_Normal_331 说话_正常_331 249 | P_Talk_Smile_121 说话_微笑_121 250 | P_Talk_Smile_122 谈笑风生_122 251 | P_Talk_Smile_131 说话_微笑_131 252 | P_Talk_Smile_132 说话_微笑_132 253 | P_Talk_Smile_221 谈笑风生_221 254 | P_Talk_Smile_222 谈笑风生_222 255 | P_Talk_Smile_231 谈笑风生_231 256 | P_Talk_Smile_232 说话_微笑_232 257 | P_Talk_Smile_321 谈笑风生_321 258 | P_Talk_Smile_322 谈笑风生_322 259 | P_Talk_Smile_331 说话_微笑_331 260 | P_Pero_01 吐舌_01 261 | P_Pero_02 吐舌_02 262 | 263 | //Part I (Reference) 264 | using miHoYoEmotion; 265 | //Part II (Run) 266 | //get character path 267 | var obj = GameObject.Find("EntityRoot/AvatarRoot/Avatar_Girl_Sword_Ayaka(Clone)/OffsetDummy/Avatar_Girl_Sword_Ayaka"); 268 | var emo = obj.GetComponent(); 269 | //Set Eye expression 270 | emo.SetEmotion("Fear",0); 271 | //Set Mouth expression 272 | emo.SetPhoneme("P_Pero_01",0); 273 | emo.EmoFinish(); -------------------------------------------------------------------------------- /luac.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mintygingy/SobSeed/f4cfff6c165406b73e3efea2ad0397be4ac5f103/luac.exe -------------------------------------------------------------------------------- /mole.lua: -------------------------------------------------------------------------------- 1 | //some test stuff for uid 2 | uidpos = CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID").transform.position 3 | CS.MoleMole.ActorUtils.ShowMessage(tostring(uidpos)) 4 | -------------------------------------------------------------------------------- /sources/PacketOpcodesUtils.java: -------------------------------------------------------------------------------- 1 | package emu.grasscutter.net.packet; 2 | 3 | import java.io.FileWriter; 4 | import java.io.IOException; 5 | import java.lang.reflect.Field; 6 | import java.util.Map; 7 | import java.util.Set; 8 | import java.util.TreeMap; 9 | import java.util.stream.Collectors; 10 | 11 | import emu.grasscutter.GameConstants; 12 | import emu.grasscutter.grasscutter; 13 | import emu.grasscutter.utils.JsonUtils; 14 | import it.unimi.dsi.fastutil.ints.Int2ObjectMap; 15 | import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; 16 | 17 | public class PacketOpcodesUtils { 18 | private static Int2ObjectMap opcodeMap; 19 | 20 | public static final Set BANNED_PACKETS = Set.of( 21 | PacketOpcodes.PlayerLuaShellNotify 22 | ); 23 | 24 | public static final Set LOOP_PACKETS = Set.of( 25 | PacketOpcodes.PingReq, 26 | PacketOpcodes.PingRsp, 27 | PacketOpcodes.WorldPlayerRTTNotify, 28 | PacketOpcodes.UnionCmdNotify, 29 | PacketOpcodes.QueryPathReq, 30 | PacketOpcodes.QueryPathRsp 31 | ); 32 | 33 | static { 34 | opcodeMap = new Int2ObjectOpenHashMap(); 35 | 36 | Field[] fields = PacketOpcodes.class.getFields(); 37 | 38 | for (Field f : fields) { 39 | if (f.getType().equals(int.class)) { 40 | try { 41 | opcodeMap.put(f.getInt(null), f.getName()); 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | } 47 | } 48 | 49 | public static String getOpcodeName(int opcode) { 50 | if (opcode <= 0) return "UNKNOWN"; 51 | return opcodeMap.getOrDefault(opcode, "UNKNOWN"); 52 | } 53 | 54 | public static void dumpPacketIds() { 55 | try (FileWriter writer = new FileWriter("./PacketIds_" + GameConstants.VERSION + ".json")) { 56 | // Create sorted tree map 57 | Map packetIds = opcodeMap.int2ObjectEntrySet().stream() 58 | .filter(e -> e.getIntKey() > 0) 59 | .collect(Collectors.toMap(Int2ObjectMap.Entry::getIntKey, Int2ObjectMap.Entry::getValue, (k, v) -> v, TreeMap::new)); 60 | // Write to file 61 | writer.write(JsonUtils.encode(packetIds)); 62 | grasscutter.getLogger().info("Dumped packet ids."); 63 | } catch (IOException e) { 64 | e.printStackTrace(); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /sources/PacketWindSeedClientNotify.java: -------------------------------------------------------------------------------- 1 | package emu.grasscutter.server.packet.send; 2 | 3 | import com.google.protobuf.ByteString; 4 | import emu.grasscutter.net.packet.BasePacket; 5 | import emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify; 6 | import emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify; 7 | import emu.grasscutter.utils.FileUtils; 8 | import java.nio.file.Files; 9 | import java.nio.file.Paths; 10 | import java.nio.file.Path; 11 | 12 | public class PacketWindSeedClientNotify extends BasePacket { 13 | public PacketWindSeedClientNotify(String givenPath) { 14 | super(1157); 15 | final Path path = Paths.get(givenPath, new String[0]); 16 | byte[] data; 17 | try { 18 | data = Files.readAllBytes(path); 19 | } 20 | catch (Exception e) { 21 | data = FileUtils.readResource("/keys/no.luac"); 22 | } 23 | WindSeedClientNotify proto = WindSeedClientNotify.newBuilder().setAreaNotify(AreaNotify.newBuilder().setAreaId(1).setAreaType(1).setAreaCode(ByteString.copyFrom(data)).build()).build(); 24 | this.setData(proto); 25 | } 26 | } -------------------------------------------------------------------------------- /sources/WindSeedClientNotifyOuterClass.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: WindSeedClientNotify.proto 3 | 4 | package emu.grasscutter.net.proto; 5 | 6 | public final class WindSeedClientNotifyOuterClass { 7 | private WindSeedClientNotifyOuterClass() {} 8 | public static void registerAllExtensions( 9 | com.google.protobuf.ExtensionRegistryLite registry) { 10 | } 11 | 12 | public static void registerAllExtensions( 13 | com.google.protobuf.ExtensionRegistry registry) { 14 | registerAllExtensions( 15 | (com.google.protobuf.ExtensionRegistryLite) registry); 16 | } 17 | public interface WindSeedClientNotifyOrBuilder extends 18 | // @@protoc_insertion_point(interface_extends:WindSeedClientNotify) 19 | com.google.protobuf.MessageOrBuilder { 20 | 21 | /** 22 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 23 | * @return Whether the refreshNotify field is set. 24 | */ 25 | boolean hasRefreshNotify(); 26 | /** 27 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 28 | * @return The refreshNotify. 29 | */ 30 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getRefreshNotify(); 31 | /** 32 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 33 | */ 34 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder getRefreshNotifyOrBuilder(); 35 | 36 | /** 37 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 38 | * @return Whether the addWindBulletNotify field is set. 39 | */ 40 | boolean hasAddWindBulletNotify(); 41 | /** 42 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 43 | * @return The addWindBulletNotify. 44 | */ 45 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getAddWindBulletNotify(); 46 | /** 47 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 48 | */ 49 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder getAddWindBulletNotifyOrBuilder(); 50 | 51 | /** 52 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 53 | * @return Whether the areaNotify field is set. 54 | */ 55 | boolean hasAreaNotify(); 56 | /** 57 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 58 | * @return The areaNotify. 59 | */ 60 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getAreaNotify(); 61 | /** 62 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 63 | */ 64 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder getAreaNotifyOrBuilder(); 65 | 66 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.NotifyCase getNotifyCase(); 67 | } 68 | /** 69 | *
  70 |    * enum CmdId {
  71 |    *   option allow_alias = true;
  72 |    *   NONE = 0;
  73 |    *   CMD_ID = 1157;
  74 |    *   ENET_CHANNEL_ID = 0;
  75 |    *   ENET_IS_RELIABLE = 1;
  76 |    * }
  77 |    * 
78 | * 79 | * Protobuf type {@code WindSeedClientNotify} 80 | */ 81 | public static final class WindSeedClientNotify extends 82 | com.google.protobuf.GeneratedMessageV3 implements 83 | // @@protoc_insertion_point(message_implements:WindSeedClientNotify) 84 | WindSeedClientNotifyOrBuilder { 85 | private static final long serialVersionUID = 0L; 86 | // Use WindSeedClientNotify.newBuilder() to construct. 87 | private WindSeedClientNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { 88 | super(builder); 89 | } 90 | private WindSeedClientNotify() { 91 | } 92 | 93 | @java.lang.Override 94 | @SuppressWarnings({"unused"}) 95 | protected java.lang.Object newInstance( 96 | UnusedPrivateParameter unused) { 97 | return new WindSeedClientNotify(); 98 | } 99 | 100 | @java.lang.Override 101 | public final com.google.protobuf.UnknownFieldSet 102 | getUnknownFields() { 103 | return this.unknownFields; 104 | } 105 | private WindSeedClientNotify( 106 | com.google.protobuf.CodedInputStream input, 107 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 108 | throws com.google.protobuf.InvalidProtocolBufferException { 109 | this(); 110 | if (extensionRegistry == null) { 111 | throw new java.lang.NullPointerException(); 112 | } 113 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = 114 | com.google.protobuf.UnknownFieldSet.newBuilder(); 115 | try { 116 | boolean done = false; 117 | while (!done) { 118 | int tag = input.readTag(); 119 | switch (tag) { 120 | case 0: 121 | done = true; 122 | break; 123 | case 42: { 124 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder subBuilder = null; 125 | if (notifyCase_ == 5) { 126 | subBuilder = ((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_).toBuilder(); 127 | } 128 | notify_ = 129 | input.readMessage(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.parser(), extensionRegistry); 130 | if (subBuilder != null) { 131 | subBuilder.mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_); 132 | notify_ = subBuilder.buildPartial(); 133 | } 134 | notifyCase_ = 5; 135 | break; 136 | } 137 | case 58: { 138 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder subBuilder = null; 139 | if (notifyCase_ == 7) { 140 | subBuilder = ((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_).toBuilder(); 141 | } 142 | notify_ = 143 | input.readMessage(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.parser(), extensionRegistry); 144 | if (subBuilder != null) { 145 | subBuilder.mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_); 146 | notify_ = subBuilder.buildPartial(); 147 | } 148 | notifyCase_ = 7; 149 | break; 150 | } 151 | case 114: { 152 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder subBuilder = null; 153 | if (notifyCase_ == 14) { 154 | subBuilder = ((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_).toBuilder(); 155 | } 156 | notify_ = 157 | input.readMessage(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.parser(), extensionRegistry); 158 | if (subBuilder != null) { 159 | subBuilder.mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_); 160 | notify_ = subBuilder.buildPartial(); 161 | } 162 | notifyCase_ = 14; 163 | break; 164 | } 165 | default: { 166 | if (!parseUnknownField( 167 | input, unknownFields, extensionRegistry, tag)) { 168 | done = true; 169 | } 170 | break; 171 | } 172 | } 173 | } 174 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 175 | throw e.setUnfinishedMessage(this); 176 | } catch (java.io.IOException e) { 177 | throw new com.google.protobuf.InvalidProtocolBufferException( 178 | e).setUnfinishedMessage(this); 179 | } finally { 180 | this.unknownFields = unknownFields.build(); 181 | makeExtensionsImmutable(); 182 | } 183 | } 184 | public static final com.google.protobuf.Descriptors.Descriptor 185 | getDescriptor() { 186 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_descriptor; 187 | } 188 | 189 | @java.lang.Override 190 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 191 | internalGetFieldAccessorTable() { 192 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_fieldAccessorTable 193 | .ensureFieldAccessorsInitialized( 194 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.Builder.class); 195 | } 196 | 197 | public interface RefreshNotifyOrBuilder extends 198 | // @@protoc_insertion_point(interface_extends:WindSeedClientNotify.RefreshNotify) 199 | com.google.protobuf.MessageOrBuilder { 200 | 201 | /** 202 | * uint32 refresh_num = 7; 203 | * @return The refreshNum. 204 | */ 205 | int getRefreshNum(); 206 | } 207 | /** 208 | * Protobuf type {@code WindSeedClientNotify.RefreshNotify} 209 | */ 210 | public static final class RefreshNotify extends 211 | com.google.protobuf.GeneratedMessageV3 implements 212 | // @@protoc_insertion_point(message_implements:WindSeedClientNotify.RefreshNotify) 213 | RefreshNotifyOrBuilder { 214 | private static final long serialVersionUID = 0L; 215 | // Use RefreshNotify.newBuilder() to construct. 216 | private RefreshNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { 217 | super(builder); 218 | } 219 | private RefreshNotify() { 220 | } 221 | 222 | @java.lang.Override 223 | @SuppressWarnings({"unused"}) 224 | protected java.lang.Object newInstance( 225 | UnusedPrivateParameter unused) { 226 | return new RefreshNotify(); 227 | } 228 | 229 | @java.lang.Override 230 | public final com.google.protobuf.UnknownFieldSet 231 | getUnknownFields() { 232 | return this.unknownFields; 233 | } 234 | private RefreshNotify( 235 | com.google.protobuf.CodedInputStream input, 236 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 237 | throws com.google.protobuf.InvalidProtocolBufferException { 238 | this(); 239 | if (extensionRegistry == null) { 240 | throw new java.lang.NullPointerException(); 241 | } 242 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = 243 | com.google.protobuf.UnknownFieldSet.newBuilder(); 244 | try { 245 | boolean done = false; 246 | while (!done) { 247 | int tag = input.readTag(); 248 | switch (tag) { 249 | case 0: 250 | done = true; 251 | break; 252 | case 56: { 253 | 254 | refreshNum_ = input.readUInt32(); 255 | break; 256 | } 257 | default: { 258 | if (!parseUnknownField( 259 | input, unknownFields, extensionRegistry, tag)) { 260 | done = true; 261 | } 262 | break; 263 | } 264 | } 265 | } 266 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 267 | throw e.setUnfinishedMessage(this); 268 | } catch (java.io.IOException e) { 269 | throw new com.google.protobuf.InvalidProtocolBufferException( 270 | e).setUnfinishedMessage(this); 271 | } finally { 272 | this.unknownFields = unknownFields.build(); 273 | makeExtensionsImmutable(); 274 | } 275 | } 276 | public static final com.google.protobuf.Descriptors.Descriptor 277 | getDescriptor() { 278 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_RefreshNotify_descriptor; 279 | } 280 | 281 | @java.lang.Override 282 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 283 | internalGetFieldAccessorTable() { 284 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_RefreshNotify_fieldAccessorTable 285 | .ensureFieldAccessorsInitialized( 286 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder.class); 287 | } 288 | 289 | public static final int REFRESH_NUM_FIELD_NUMBER = 7; 290 | private int refreshNum_; 291 | /** 292 | * uint32 refresh_num = 7; 293 | * @return The refreshNum. 294 | */ 295 | @java.lang.Override 296 | public int getRefreshNum() { 297 | return refreshNum_; 298 | } 299 | 300 | private byte memoizedIsInitialized = -1; 301 | @java.lang.Override 302 | public final boolean isInitialized() { 303 | byte isInitialized = memoizedIsInitialized; 304 | if (isInitialized == 1) return true; 305 | if (isInitialized == 0) return false; 306 | 307 | memoizedIsInitialized = 1; 308 | return true; 309 | } 310 | 311 | @java.lang.Override 312 | public void writeTo(com.google.protobuf.CodedOutputStream output) 313 | throws java.io.IOException { 314 | if (refreshNum_ != 0) { 315 | output.writeUInt32(7, refreshNum_); 316 | } 317 | unknownFields.writeTo(output); 318 | } 319 | 320 | @java.lang.Override 321 | public int getSerializedSize() { 322 | int size = memoizedSize; 323 | if (size != -1) return size; 324 | 325 | size = 0; 326 | if (refreshNum_ != 0) { 327 | size += com.google.protobuf.CodedOutputStream 328 | .computeUInt32Size(7, refreshNum_); 329 | } 330 | size += unknownFields.getSerializedSize(); 331 | memoizedSize = size; 332 | return size; 333 | } 334 | 335 | @java.lang.Override 336 | public boolean equals(final java.lang.Object obj) { 337 | if (obj == this) { 338 | return true; 339 | } 340 | if (!(obj instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify)) { 341 | return super.equals(obj); 342 | } 343 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify other = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) obj; 344 | 345 | if (getRefreshNum() 346 | != other.getRefreshNum()) return false; 347 | if (!unknownFields.equals(other.unknownFields)) return false; 348 | return true; 349 | } 350 | 351 | @java.lang.Override 352 | public int hashCode() { 353 | if (memoizedHashCode != 0) { 354 | return memoizedHashCode; 355 | } 356 | int hash = 41; 357 | hash = (19 * hash) + getDescriptor().hashCode(); 358 | hash = (37 * hash) + REFRESH_NUM_FIELD_NUMBER; 359 | hash = (53 * hash) + getRefreshNum(); 360 | hash = (29 * hash) + unknownFields.hashCode(); 361 | memoizedHashCode = hash; 362 | return hash; 363 | } 364 | 365 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 366 | java.nio.ByteBuffer data) 367 | throws com.google.protobuf.InvalidProtocolBufferException { 368 | return PARSER.parseFrom(data); 369 | } 370 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 371 | java.nio.ByteBuffer data, 372 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 373 | throws com.google.protobuf.InvalidProtocolBufferException { 374 | return PARSER.parseFrom(data, extensionRegistry); 375 | } 376 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 377 | com.google.protobuf.ByteString data) 378 | throws com.google.protobuf.InvalidProtocolBufferException { 379 | return PARSER.parseFrom(data); 380 | } 381 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 382 | com.google.protobuf.ByteString data, 383 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 384 | throws com.google.protobuf.InvalidProtocolBufferException { 385 | return PARSER.parseFrom(data, extensionRegistry); 386 | } 387 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom(byte[] data) 388 | throws com.google.protobuf.InvalidProtocolBufferException { 389 | return PARSER.parseFrom(data); 390 | } 391 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 392 | byte[] data, 393 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 394 | throws com.google.protobuf.InvalidProtocolBufferException { 395 | return PARSER.parseFrom(data, extensionRegistry); 396 | } 397 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom(java.io.InputStream input) 398 | throws java.io.IOException { 399 | return com.google.protobuf.GeneratedMessageV3 400 | .parseWithIOException(PARSER, input); 401 | } 402 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 403 | java.io.InputStream input, 404 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 405 | throws java.io.IOException { 406 | return com.google.protobuf.GeneratedMessageV3 407 | .parseWithIOException(PARSER, input, extensionRegistry); 408 | } 409 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseDelimitedFrom(java.io.InputStream input) 410 | throws java.io.IOException { 411 | return com.google.protobuf.GeneratedMessageV3 412 | .parseDelimitedWithIOException(PARSER, input); 413 | } 414 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseDelimitedFrom( 415 | java.io.InputStream input, 416 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 417 | throws java.io.IOException { 418 | return com.google.protobuf.GeneratedMessageV3 419 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 420 | } 421 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 422 | com.google.protobuf.CodedInputStream input) 423 | throws java.io.IOException { 424 | return com.google.protobuf.GeneratedMessageV3 425 | .parseWithIOException(PARSER, input); 426 | } 427 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parseFrom( 428 | com.google.protobuf.CodedInputStream input, 429 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 430 | throws java.io.IOException { 431 | return com.google.protobuf.GeneratedMessageV3 432 | .parseWithIOException(PARSER, input, extensionRegistry); 433 | } 434 | 435 | @java.lang.Override 436 | public Builder newBuilderForType() { return newBuilder(); } 437 | public static Builder newBuilder() { 438 | return DEFAULT_INSTANCE.toBuilder(); 439 | } 440 | public static Builder newBuilder(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify prototype) { 441 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 442 | } 443 | @java.lang.Override 444 | public Builder toBuilder() { 445 | return this == DEFAULT_INSTANCE 446 | ? new Builder() : new Builder().mergeFrom(this); 447 | } 448 | 449 | @java.lang.Override 450 | protected Builder newBuilderForType( 451 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 452 | Builder builder = new Builder(parent); 453 | return builder; 454 | } 455 | /** 456 | * Protobuf type {@code WindSeedClientNotify.RefreshNotify} 457 | */ 458 | public static final class Builder extends 459 | com.google.protobuf.GeneratedMessageV3.Builder implements 460 | // @@protoc_insertion_point(builder_implements:WindSeedClientNotify.RefreshNotify) 461 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder { 462 | public static final com.google.protobuf.Descriptors.Descriptor 463 | getDescriptor() { 464 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_RefreshNotify_descriptor; 465 | } 466 | 467 | @java.lang.Override 468 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 469 | internalGetFieldAccessorTable() { 470 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_RefreshNotify_fieldAccessorTable 471 | .ensureFieldAccessorsInitialized( 472 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder.class); 473 | } 474 | 475 | // Construct using emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.newBuilder() 476 | private Builder() { 477 | maybeForceBuilderInitialization(); 478 | } 479 | 480 | private Builder( 481 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 482 | super(parent); 483 | maybeForceBuilderInitialization(); 484 | } 485 | private void maybeForceBuilderInitialization() { 486 | if (com.google.protobuf.GeneratedMessageV3 487 | .alwaysUseFieldBuilders) { 488 | } 489 | } 490 | @java.lang.Override 491 | public Builder clear() { 492 | super.clear(); 493 | refreshNum_ = 0; 494 | 495 | return this; 496 | } 497 | 498 | @java.lang.Override 499 | public com.google.protobuf.Descriptors.Descriptor 500 | getDescriptorForType() { 501 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_RefreshNotify_descriptor; 502 | } 503 | 504 | @java.lang.Override 505 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getDefaultInstanceForType() { 506 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 507 | } 508 | 509 | @java.lang.Override 510 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify build() { 511 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify result = buildPartial(); 512 | if (!result.isInitialized()) { 513 | throw newUninitializedMessageException(result); 514 | } 515 | return result; 516 | } 517 | 518 | @java.lang.Override 519 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify buildPartial() { 520 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify result = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify(this); 521 | result.refreshNum_ = refreshNum_; 522 | onBuilt(); 523 | return result; 524 | } 525 | 526 | @java.lang.Override 527 | public Builder clone() { 528 | return super.clone(); 529 | } 530 | @java.lang.Override 531 | public Builder setField( 532 | com.google.protobuf.Descriptors.FieldDescriptor field, 533 | java.lang.Object value) { 534 | return super.setField(field, value); 535 | } 536 | @java.lang.Override 537 | public Builder clearField( 538 | com.google.protobuf.Descriptors.FieldDescriptor field) { 539 | return super.clearField(field); 540 | } 541 | @java.lang.Override 542 | public Builder clearOneof( 543 | com.google.protobuf.Descriptors.OneofDescriptor oneof) { 544 | return super.clearOneof(oneof); 545 | } 546 | @java.lang.Override 547 | public Builder setRepeatedField( 548 | com.google.protobuf.Descriptors.FieldDescriptor field, 549 | int index, java.lang.Object value) { 550 | return super.setRepeatedField(field, index, value); 551 | } 552 | @java.lang.Override 553 | public Builder addRepeatedField( 554 | com.google.protobuf.Descriptors.FieldDescriptor field, 555 | java.lang.Object value) { 556 | return super.addRepeatedField(field, value); 557 | } 558 | @java.lang.Override 559 | public Builder mergeFrom(com.google.protobuf.Message other) { 560 | if (other instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) { 561 | return mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify)other); 562 | } else { 563 | super.mergeFrom(other); 564 | return this; 565 | } 566 | } 567 | 568 | public Builder mergeFrom(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify other) { 569 | if (other == emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance()) return this; 570 | if (other.getRefreshNum() != 0) { 571 | setRefreshNum(other.getRefreshNum()); 572 | } 573 | this.mergeUnknownFields(other.unknownFields); 574 | onChanged(); 575 | return this; 576 | } 577 | 578 | @java.lang.Override 579 | public final boolean isInitialized() { 580 | return true; 581 | } 582 | 583 | @java.lang.Override 584 | public Builder mergeFrom( 585 | com.google.protobuf.CodedInputStream input, 586 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 587 | throws java.io.IOException { 588 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify parsedMessage = null; 589 | try { 590 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 591 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 592 | parsedMessage = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) e.getUnfinishedMessage(); 593 | throw e.unwrapIOException(); 594 | } finally { 595 | if (parsedMessage != null) { 596 | mergeFrom(parsedMessage); 597 | } 598 | } 599 | return this; 600 | } 601 | 602 | private int refreshNum_ ; 603 | /** 604 | * uint32 refresh_num = 7; 605 | * @return The refreshNum. 606 | */ 607 | @java.lang.Override 608 | public int getRefreshNum() { 609 | return refreshNum_; 610 | } 611 | /** 612 | * uint32 refresh_num = 7; 613 | * @param value The refreshNum to set. 614 | * @return This builder for chaining. 615 | */ 616 | public Builder setRefreshNum(int value) { 617 | 618 | refreshNum_ = value; 619 | onChanged(); 620 | return this; 621 | } 622 | /** 623 | * uint32 refresh_num = 7; 624 | * @return This builder for chaining. 625 | */ 626 | public Builder clearRefreshNum() { 627 | 628 | refreshNum_ = 0; 629 | onChanged(); 630 | return this; 631 | } 632 | @java.lang.Override 633 | public final Builder setUnknownFields( 634 | final com.google.protobuf.UnknownFieldSet unknownFields) { 635 | return super.setUnknownFields(unknownFields); 636 | } 637 | 638 | @java.lang.Override 639 | public final Builder mergeUnknownFields( 640 | final com.google.protobuf.UnknownFieldSet unknownFields) { 641 | return super.mergeUnknownFields(unknownFields); 642 | } 643 | 644 | 645 | // @@protoc_insertion_point(builder_scope:WindSeedClientNotify.RefreshNotify) 646 | } 647 | 648 | // @@protoc_insertion_point(class_scope:WindSeedClientNotify.RefreshNotify) 649 | private static final emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify DEFAULT_INSTANCE; 650 | static { 651 | DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify(); 652 | } 653 | 654 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getDefaultInstance() { 655 | return DEFAULT_INSTANCE; 656 | } 657 | 658 | private static final com.google.protobuf.Parser 659 | PARSER = new com.google.protobuf.AbstractParser() { 660 | @java.lang.Override 661 | public RefreshNotify parsePartialFrom( 662 | com.google.protobuf.CodedInputStream input, 663 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 664 | throws com.google.protobuf.InvalidProtocolBufferException { 665 | return new RefreshNotify(input, extensionRegistry); 666 | } 667 | }; 668 | 669 | public static com.google.protobuf.Parser parser() { 670 | return PARSER; 671 | } 672 | 673 | @java.lang.Override 674 | public com.google.protobuf.Parser getParserForType() { 675 | return PARSER; 676 | } 677 | 678 | @java.lang.Override 679 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getDefaultInstanceForType() { 680 | return DEFAULT_INSTANCE; 681 | } 682 | 683 | } 684 | 685 | public interface AddWindBulletNotifyOrBuilder extends 686 | // @@protoc_insertion_point(interface_extends:WindSeedClientNotify.AddWindBulletNotify) 687 | com.google.protobuf.MessageOrBuilder { 688 | 689 | /** 690 | * .Vector seed_pos = 14; 691 | * @return Whether the seedPos field is set. 692 | */ 693 | boolean hasSeedPos(); 694 | /** 695 | * .Vector seed_pos = 14; 696 | * @return The seedPos. 697 | */ 698 | emu.grasscutter.net.proto.VectorOuterClass.Vector getSeedPos(); 699 | /** 700 | * .Vector seed_pos = 14; 701 | */ 702 | emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSeedPosOrBuilder(); 703 | 704 | /** 705 | * uint32 Unk3300_CKIKKCAFJBC = 7; 706 | * @return The unk3300CKIKKCAFJBC. 707 | */ 708 | int getUnk3300CKIKKCAFJBC(); 709 | 710 | /** 711 | * uint32 Unk3300_MPDFAPBDJAH = 11; 712 | * @return The unk3300MPDFAPBDJAH. 713 | */ 714 | int getUnk3300MPDFAPBDJAH(); 715 | } 716 | /** 717 | * Protobuf type {@code WindSeedClientNotify.AddWindBulletNotify} 718 | */ 719 | public static final class AddWindBulletNotify extends 720 | com.google.protobuf.GeneratedMessageV3 implements 721 | // @@protoc_insertion_point(message_implements:WindSeedClientNotify.AddWindBulletNotify) 722 | AddWindBulletNotifyOrBuilder { 723 | private static final long serialVersionUID = 0L; 724 | // Use AddWindBulletNotify.newBuilder() to construct. 725 | private AddWindBulletNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { 726 | super(builder); 727 | } 728 | private AddWindBulletNotify() { 729 | } 730 | 731 | @java.lang.Override 732 | @SuppressWarnings({"unused"}) 733 | protected java.lang.Object newInstance( 734 | UnusedPrivateParameter unused) { 735 | return new AddWindBulletNotify(); 736 | } 737 | 738 | @java.lang.Override 739 | public final com.google.protobuf.UnknownFieldSet 740 | getUnknownFields() { 741 | return this.unknownFields; 742 | } 743 | private AddWindBulletNotify( 744 | com.google.protobuf.CodedInputStream input, 745 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 746 | throws com.google.protobuf.InvalidProtocolBufferException { 747 | this(); 748 | if (extensionRegistry == null) { 749 | throw new java.lang.NullPointerException(); 750 | } 751 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = 752 | com.google.protobuf.UnknownFieldSet.newBuilder(); 753 | try { 754 | boolean done = false; 755 | while (!done) { 756 | int tag = input.readTag(); 757 | switch (tag) { 758 | case 0: 759 | done = true; 760 | break; 761 | case 56: { 762 | 763 | unk3300CKIKKCAFJBC_ = input.readUInt32(); 764 | break; 765 | } 766 | case 88: { 767 | 768 | unk3300MPDFAPBDJAH_ = input.readUInt32(); 769 | break; 770 | } 771 | case 114: { 772 | emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null; 773 | if (seedPos_ != null) { 774 | subBuilder = seedPos_.toBuilder(); 775 | } 776 | seedPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry); 777 | if (subBuilder != null) { 778 | subBuilder.mergeFrom(seedPos_); 779 | seedPos_ = subBuilder.buildPartial(); 780 | } 781 | 782 | break; 783 | } 784 | default: { 785 | if (!parseUnknownField( 786 | input, unknownFields, extensionRegistry, tag)) { 787 | done = true; 788 | } 789 | break; 790 | } 791 | } 792 | } 793 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 794 | throw e.setUnfinishedMessage(this); 795 | } catch (java.io.IOException e) { 796 | throw new com.google.protobuf.InvalidProtocolBufferException( 797 | e).setUnfinishedMessage(this); 798 | } finally { 799 | this.unknownFields = unknownFields.build(); 800 | makeExtensionsImmutable(); 801 | } 802 | } 803 | public static final com.google.protobuf.Descriptors.Descriptor 804 | getDescriptor() { 805 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor; 806 | } 807 | 808 | @java.lang.Override 809 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 810 | internalGetFieldAccessorTable() { 811 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AddWindBulletNotify_fieldAccessorTable 812 | .ensureFieldAccessorsInitialized( 813 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder.class); 814 | } 815 | 816 | public static final int SEED_POS_FIELD_NUMBER = 14; 817 | private emu.grasscutter.net.proto.VectorOuterClass.Vector seedPos_; 818 | /** 819 | * .Vector seed_pos = 14; 820 | * @return Whether the seedPos field is set. 821 | */ 822 | @java.lang.Override 823 | public boolean hasSeedPos() { 824 | return seedPos_ != null; 825 | } 826 | /** 827 | * .Vector seed_pos = 14; 828 | * @return The seedPos. 829 | */ 830 | @java.lang.Override 831 | public emu.grasscutter.net.proto.VectorOuterClass.Vector getSeedPos() { 832 | return seedPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : seedPos_; 833 | } 834 | /** 835 | * .Vector seed_pos = 14; 836 | */ 837 | @java.lang.Override 838 | public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSeedPosOrBuilder() { 839 | return getSeedPos(); 840 | } 841 | 842 | public static final int UNK3300_CKIKKCAFJBC_FIELD_NUMBER = 7; 843 | private int unk3300CKIKKCAFJBC_; 844 | /** 845 | * uint32 Unk3300_CKIKKCAFJBC = 7; 846 | * @return The unk3300CKIKKCAFJBC. 847 | */ 848 | @java.lang.Override 849 | public int getUnk3300CKIKKCAFJBC() { 850 | return unk3300CKIKKCAFJBC_; 851 | } 852 | 853 | public static final int UNK3300_MPDFAPBDJAH_FIELD_NUMBER = 11; 854 | private int unk3300MPDFAPBDJAH_; 855 | /** 856 | * uint32 Unk3300_MPDFAPBDJAH = 11; 857 | * @return The unk3300MPDFAPBDJAH. 858 | */ 859 | @java.lang.Override 860 | public int getUnk3300MPDFAPBDJAH() { 861 | return unk3300MPDFAPBDJAH_; 862 | } 863 | 864 | private byte memoizedIsInitialized = -1; 865 | @java.lang.Override 866 | public final boolean isInitialized() { 867 | byte isInitialized = memoizedIsInitialized; 868 | if (isInitialized == 1) return true; 869 | if (isInitialized == 0) return false; 870 | 871 | memoizedIsInitialized = 1; 872 | return true; 873 | } 874 | 875 | @java.lang.Override 876 | public void writeTo(com.google.protobuf.CodedOutputStream output) 877 | throws java.io.IOException { 878 | if (unk3300CKIKKCAFJBC_ != 0) { 879 | output.writeUInt32(7, unk3300CKIKKCAFJBC_); 880 | } 881 | if (unk3300MPDFAPBDJAH_ != 0) { 882 | output.writeUInt32(11, unk3300MPDFAPBDJAH_); 883 | } 884 | if (seedPos_ != null) { 885 | output.writeMessage(14, getSeedPos()); 886 | } 887 | unknownFields.writeTo(output); 888 | } 889 | 890 | @java.lang.Override 891 | public int getSerializedSize() { 892 | int size = memoizedSize; 893 | if (size != -1) return size; 894 | 895 | size = 0; 896 | if (unk3300CKIKKCAFJBC_ != 0) { 897 | size += com.google.protobuf.CodedOutputStream 898 | .computeUInt32Size(7, unk3300CKIKKCAFJBC_); 899 | } 900 | if (unk3300MPDFAPBDJAH_ != 0) { 901 | size += com.google.protobuf.CodedOutputStream 902 | .computeUInt32Size(11, unk3300MPDFAPBDJAH_); 903 | } 904 | if (seedPos_ != null) { 905 | size += com.google.protobuf.CodedOutputStream 906 | .computeMessageSize(14, getSeedPos()); 907 | } 908 | size += unknownFields.getSerializedSize(); 909 | memoizedSize = size; 910 | return size; 911 | } 912 | 913 | @java.lang.Override 914 | public boolean equals(final java.lang.Object obj) { 915 | if (obj == this) { 916 | return true; 917 | } 918 | if (!(obj instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify)) { 919 | return super.equals(obj); 920 | } 921 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify other = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) obj; 922 | 923 | if (hasSeedPos() != other.hasSeedPos()) return false; 924 | if (hasSeedPos()) { 925 | if (!getSeedPos() 926 | .equals(other.getSeedPos())) return false; 927 | } 928 | if (getUnk3300CKIKKCAFJBC() 929 | != other.getUnk3300CKIKKCAFJBC()) return false; 930 | if (getUnk3300MPDFAPBDJAH() 931 | != other.getUnk3300MPDFAPBDJAH()) return false; 932 | if (!unknownFields.equals(other.unknownFields)) return false; 933 | return true; 934 | } 935 | 936 | @java.lang.Override 937 | public int hashCode() { 938 | if (memoizedHashCode != 0) { 939 | return memoizedHashCode; 940 | } 941 | int hash = 41; 942 | hash = (19 * hash) + getDescriptor().hashCode(); 943 | if (hasSeedPos()) { 944 | hash = (37 * hash) + SEED_POS_FIELD_NUMBER; 945 | hash = (53 * hash) + getSeedPos().hashCode(); 946 | } 947 | hash = (37 * hash) + UNK3300_CKIKKCAFJBC_FIELD_NUMBER; 948 | hash = (53 * hash) + getUnk3300CKIKKCAFJBC(); 949 | hash = (37 * hash) + UNK3300_MPDFAPBDJAH_FIELD_NUMBER; 950 | hash = (53 * hash) + getUnk3300MPDFAPBDJAH(); 951 | hash = (29 * hash) + unknownFields.hashCode(); 952 | memoizedHashCode = hash; 953 | return hash; 954 | } 955 | 956 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 957 | java.nio.ByteBuffer data) 958 | throws com.google.protobuf.InvalidProtocolBufferException { 959 | return PARSER.parseFrom(data); 960 | } 961 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 962 | java.nio.ByteBuffer data, 963 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 964 | throws com.google.protobuf.InvalidProtocolBufferException { 965 | return PARSER.parseFrom(data, extensionRegistry); 966 | } 967 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 968 | com.google.protobuf.ByteString data) 969 | throws com.google.protobuf.InvalidProtocolBufferException { 970 | return PARSER.parseFrom(data); 971 | } 972 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 973 | com.google.protobuf.ByteString data, 974 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 975 | throws com.google.protobuf.InvalidProtocolBufferException { 976 | return PARSER.parseFrom(data, extensionRegistry); 977 | } 978 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom(byte[] data) 979 | throws com.google.protobuf.InvalidProtocolBufferException { 980 | return PARSER.parseFrom(data); 981 | } 982 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 983 | byte[] data, 984 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 985 | throws com.google.protobuf.InvalidProtocolBufferException { 986 | return PARSER.parseFrom(data, extensionRegistry); 987 | } 988 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom(java.io.InputStream input) 989 | throws java.io.IOException { 990 | return com.google.protobuf.GeneratedMessageV3 991 | .parseWithIOException(PARSER, input); 992 | } 993 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 994 | java.io.InputStream input, 995 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 996 | throws java.io.IOException { 997 | return com.google.protobuf.GeneratedMessageV3 998 | .parseWithIOException(PARSER, input, extensionRegistry); 999 | } 1000 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseDelimitedFrom(java.io.InputStream input) 1001 | throws java.io.IOException { 1002 | return com.google.protobuf.GeneratedMessageV3 1003 | .parseDelimitedWithIOException(PARSER, input); 1004 | } 1005 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseDelimitedFrom( 1006 | java.io.InputStream input, 1007 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1008 | throws java.io.IOException { 1009 | return com.google.protobuf.GeneratedMessageV3 1010 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 1011 | } 1012 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 1013 | com.google.protobuf.CodedInputStream input) 1014 | throws java.io.IOException { 1015 | return com.google.protobuf.GeneratedMessageV3 1016 | .parseWithIOException(PARSER, input); 1017 | } 1018 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parseFrom( 1019 | com.google.protobuf.CodedInputStream input, 1020 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1021 | throws java.io.IOException { 1022 | return com.google.protobuf.GeneratedMessageV3 1023 | .parseWithIOException(PARSER, input, extensionRegistry); 1024 | } 1025 | 1026 | @java.lang.Override 1027 | public Builder newBuilderForType() { return newBuilder(); } 1028 | public static Builder newBuilder() { 1029 | return DEFAULT_INSTANCE.toBuilder(); 1030 | } 1031 | public static Builder newBuilder(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify prototype) { 1032 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1033 | } 1034 | @java.lang.Override 1035 | public Builder toBuilder() { 1036 | return this == DEFAULT_INSTANCE 1037 | ? new Builder() : new Builder().mergeFrom(this); 1038 | } 1039 | 1040 | @java.lang.Override 1041 | protected Builder newBuilderForType( 1042 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1043 | Builder builder = new Builder(parent); 1044 | return builder; 1045 | } 1046 | /** 1047 | * Protobuf type {@code WindSeedClientNotify.AddWindBulletNotify} 1048 | */ 1049 | public static final class Builder extends 1050 | com.google.protobuf.GeneratedMessageV3.Builder implements 1051 | // @@protoc_insertion_point(builder_implements:WindSeedClientNotify.AddWindBulletNotify) 1052 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder { 1053 | public static final com.google.protobuf.Descriptors.Descriptor 1054 | getDescriptor() { 1055 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor; 1056 | } 1057 | 1058 | @java.lang.Override 1059 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1060 | internalGetFieldAccessorTable() { 1061 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AddWindBulletNotify_fieldAccessorTable 1062 | .ensureFieldAccessorsInitialized( 1063 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder.class); 1064 | } 1065 | 1066 | // Construct using emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.newBuilder() 1067 | private Builder() { 1068 | maybeForceBuilderInitialization(); 1069 | } 1070 | 1071 | private Builder( 1072 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1073 | super(parent); 1074 | maybeForceBuilderInitialization(); 1075 | } 1076 | private void maybeForceBuilderInitialization() { 1077 | if (com.google.protobuf.GeneratedMessageV3 1078 | .alwaysUseFieldBuilders) { 1079 | } 1080 | } 1081 | @java.lang.Override 1082 | public Builder clear() { 1083 | super.clear(); 1084 | if (seedPosBuilder_ == null) { 1085 | seedPos_ = null; 1086 | } else { 1087 | seedPos_ = null; 1088 | seedPosBuilder_ = null; 1089 | } 1090 | unk3300CKIKKCAFJBC_ = 0; 1091 | 1092 | unk3300MPDFAPBDJAH_ = 0; 1093 | 1094 | return this; 1095 | } 1096 | 1097 | @java.lang.Override 1098 | public com.google.protobuf.Descriptors.Descriptor 1099 | getDescriptorForType() { 1100 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor; 1101 | } 1102 | 1103 | @java.lang.Override 1104 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getDefaultInstanceForType() { 1105 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 1106 | } 1107 | 1108 | @java.lang.Override 1109 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify build() { 1110 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify result = buildPartial(); 1111 | if (!result.isInitialized()) { 1112 | throw newUninitializedMessageException(result); 1113 | } 1114 | return result; 1115 | } 1116 | 1117 | @java.lang.Override 1118 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify buildPartial() { 1119 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify result = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify(this); 1120 | if (seedPosBuilder_ == null) { 1121 | result.seedPos_ = seedPos_; 1122 | } else { 1123 | result.seedPos_ = seedPosBuilder_.build(); 1124 | } 1125 | result.unk3300CKIKKCAFJBC_ = unk3300CKIKKCAFJBC_; 1126 | result.unk3300MPDFAPBDJAH_ = unk3300MPDFAPBDJAH_; 1127 | onBuilt(); 1128 | return result; 1129 | } 1130 | 1131 | @java.lang.Override 1132 | public Builder clone() { 1133 | return super.clone(); 1134 | } 1135 | @java.lang.Override 1136 | public Builder setField( 1137 | com.google.protobuf.Descriptors.FieldDescriptor field, 1138 | java.lang.Object value) { 1139 | return super.setField(field, value); 1140 | } 1141 | @java.lang.Override 1142 | public Builder clearField( 1143 | com.google.protobuf.Descriptors.FieldDescriptor field) { 1144 | return super.clearField(field); 1145 | } 1146 | @java.lang.Override 1147 | public Builder clearOneof( 1148 | com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1149 | return super.clearOneof(oneof); 1150 | } 1151 | @java.lang.Override 1152 | public Builder setRepeatedField( 1153 | com.google.protobuf.Descriptors.FieldDescriptor field, 1154 | int index, java.lang.Object value) { 1155 | return super.setRepeatedField(field, index, value); 1156 | } 1157 | @java.lang.Override 1158 | public Builder addRepeatedField( 1159 | com.google.protobuf.Descriptors.FieldDescriptor field, 1160 | java.lang.Object value) { 1161 | return super.addRepeatedField(field, value); 1162 | } 1163 | @java.lang.Override 1164 | public Builder mergeFrom(com.google.protobuf.Message other) { 1165 | if (other instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) { 1166 | return mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify)other); 1167 | } else { 1168 | super.mergeFrom(other); 1169 | return this; 1170 | } 1171 | } 1172 | 1173 | public Builder mergeFrom(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify other) { 1174 | if (other == emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance()) return this; 1175 | if (other.hasSeedPos()) { 1176 | mergeSeedPos(other.getSeedPos()); 1177 | } 1178 | if (other.getUnk3300CKIKKCAFJBC() != 0) { 1179 | setUnk3300CKIKKCAFJBC(other.getUnk3300CKIKKCAFJBC()); 1180 | } 1181 | if (other.getUnk3300MPDFAPBDJAH() != 0) { 1182 | setUnk3300MPDFAPBDJAH(other.getUnk3300MPDFAPBDJAH()); 1183 | } 1184 | this.mergeUnknownFields(other.unknownFields); 1185 | onChanged(); 1186 | return this; 1187 | } 1188 | 1189 | @java.lang.Override 1190 | public final boolean isInitialized() { 1191 | return true; 1192 | } 1193 | 1194 | @java.lang.Override 1195 | public Builder mergeFrom( 1196 | com.google.protobuf.CodedInputStream input, 1197 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1198 | throws java.io.IOException { 1199 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify parsedMessage = null; 1200 | try { 1201 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1202 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1203 | parsedMessage = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) e.getUnfinishedMessage(); 1204 | throw e.unwrapIOException(); 1205 | } finally { 1206 | if (parsedMessage != null) { 1207 | mergeFrom(parsedMessage); 1208 | } 1209 | } 1210 | return this; 1211 | } 1212 | 1213 | private emu.grasscutter.net.proto.VectorOuterClass.Vector seedPos_; 1214 | private com.google.protobuf.SingleFieldBuilderV3< 1215 | emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> seedPosBuilder_; 1216 | /** 1217 | * .Vector seed_pos = 14; 1218 | * @return Whether the seedPos field is set. 1219 | */ 1220 | public boolean hasSeedPos() { 1221 | return seedPosBuilder_ != null || seedPos_ != null; 1222 | } 1223 | /** 1224 | * .Vector seed_pos = 14; 1225 | * @return The seedPos. 1226 | */ 1227 | public emu.grasscutter.net.proto.VectorOuterClass.Vector getSeedPos() { 1228 | if (seedPosBuilder_ == null) { 1229 | return seedPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : seedPos_; 1230 | } else { 1231 | return seedPosBuilder_.getMessage(); 1232 | } 1233 | } 1234 | /** 1235 | * .Vector seed_pos = 14; 1236 | */ 1237 | public Builder setSeedPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { 1238 | if (seedPosBuilder_ == null) { 1239 | if (value == null) { 1240 | throw new NullPointerException(); 1241 | } 1242 | seedPos_ = value; 1243 | onChanged(); 1244 | } else { 1245 | seedPosBuilder_.setMessage(value); 1246 | } 1247 | 1248 | return this; 1249 | } 1250 | /** 1251 | * .Vector seed_pos = 14; 1252 | */ 1253 | public Builder setSeedPos( 1254 | emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) { 1255 | if (seedPosBuilder_ == null) { 1256 | seedPos_ = builderForValue.build(); 1257 | onChanged(); 1258 | } else { 1259 | seedPosBuilder_.setMessage(builderForValue.build()); 1260 | } 1261 | 1262 | return this; 1263 | } 1264 | /** 1265 | * .Vector seed_pos = 14; 1266 | */ 1267 | public Builder mergeSeedPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) { 1268 | if (seedPosBuilder_ == null) { 1269 | if (seedPos_ != null) { 1270 | seedPos_ = 1271 | emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(seedPos_).mergeFrom(value).buildPartial(); 1272 | } else { 1273 | seedPos_ = value; 1274 | } 1275 | onChanged(); 1276 | } else { 1277 | seedPosBuilder_.mergeFrom(value); 1278 | } 1279 | 1280 | return this; 1281 | } 1282 | /** 1283 | * .Vector seed_pos = 14; 1284 | */ 1285 | public Builder clearSeedPos() { 1286 | if (seedPosBuilder_ == null) { 1287 | seedPos_ = null; 1288 | onChanged(); 1289 | } else { 1290 | seedPos_ = null; 1291 | seedPosBuilder_ = null; 1292 | } 1293 | 1294 | return this; 1295 | } 1296 | /** 1297 | * .Vector seed_pos = 14; 1298 | */ 1299 | public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getSeedPosBuilder() { 1300 | 1301 | onChanged(); 1302 | return getSeedPosFieldBuilder().getBuilder(); 1303 | } 1304 | /** 1305 | * .Vector seed_pos = 14; 1306 | */ 1307 | public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSeedPosOrBuilder() { 1308 | if (seedPosBuilder_ != null) { 1309 | return seedPosBuilder_.getMessageOrBuilder(); 1310 | } else { 1311 | return seedPos_ == null ? 1312 | emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : seedPos_; 1313 | } 1314 | } 1315 | /** 1316 | * .Vector seed_pos = 14; 1317 | */ 1318 | private com.google.protobuf.SingleFieldBuilderV3< 1319 | emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 1320 | getSeedPosFieldBuilder() { 1321 | if (seedPosBuilder_ == null) { 1322 | seedPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 1323 | emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>( 1324 | getSeedPos(), 1325 | getParentForChildren(), 1326 | isClean()); 1327 | seedPos_ = null; 1328 | } 1329 | return seedPosBuilder_; 1330 | } 1331 | 1332 | private int unk3300CKIKKCAFJBC_ ; 1333 | /** 1334 | * uint32 Unk3300_CKIKKCAFJBC = 7; 1335 | * @return The unk3300CKIKKCAFJBC. 1336 | */ 1337 | @java.lang.Override 1338 | public int getUnk3300CKIKKCAFJBC() { 1339 | return unk3300CKIKKCAFJBC_; 1340 | } 1341 | /** 1342 | * uint32 Unk3300_CKIKKCAFJBC = 7; 1343 | * @param value The unk3300CKIKKCAFJBC to set. 1344 | * @return This builder for chaining. 1345 | */ 1346 | public Builder setUnk3300CKIKKCAFJBC(int value) { 1347 | 1348 | unk3300CKIKKCAFJBC_ = value; 1349 | onChanged(); 1350 | return this; 1351 | } 1352 | /** 1353 | * uint32 Unk3300_CKIKKCAFJBC = 7; 1354 | * @return This builder for chaining. 1355 | */ 1356 | public Builder clearUnk3300CKIKKCAFJBC() { 1357 | 1358 | unk3300CKIKKCAFJBC_ = 0; 1359 | onChanged(); 1360 | return this; 1361 | } 1362 | 1363 | private int unk3300MPDFAPBDJAH_ ; 1364 | /** 1365 | * uint32 Unk3300_MPDFAPBDJAH = 11; 1366 | * @return The unk3300MPDFAPBDJAH. 1367 | */ 1368 | @java.lang.Override 1369 | public int getUnk3300MPDFAPBDJAH() { 1370 | return unk3300MPDFAPBDJAH_; 1371 | } 1372 | /** 1373 | * uint32 Unk3300_MPDFAPBDJAH = 11; 1374 | * @param value The unk3300MPDFAPBDJAH to set. 1375 | * @return This builder for chaining. 1376 | */ 1377 | public Builder setUnk3300MPDFAPBDJAH(int value) { 1378 | 1379 | unk3300MPDFAPBDJAH_ = value; 1380 | onChanged(); 1381 | return this; 1382 | } 1383 | /** 1384 | * uint32 Unk3300_MPDFAPBDJAH = 11; 1385 | * @return This builder for chaining. 1386 | */ 1387 | public Builder clearUnk3300MPDFAPBDJAH() { 1388 | 1389 | unk3300MPDFAPBDJAH_ = 0; 1390 | onChanged(); 1391 | return this; 1392 | } 1393 | @java.lang.Override 1394 | public final Builder setUnknownFields( 1395 | final com.google.protobuf.UnknownFieldSet unknownFields) { 1396 | return super.setUnknownFields(unknownFields); 1397 | } 1398 | 1399 | @java.lang.Override 1400 | public final Builder mergeUnknownFields( 1401 | final com.google.protobuf.UnknownFieldSet unknownFields) { 1402 | return super.mergeUnknownFields(unknownFields); 1403 | } 1404 | 1405 | 1406 | // @@protoc_insertion_point(builder_scope:WindSeedClientNotify.AddWindBulletNotify) 1407 | } 1408 | 1409 | // @@protoc_insertion_point(class_scope:WindSeedClientNotify.AddWindBulletNotify) 1410 | private static final emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify DEFAULT_INSTANCE; 1411 | static { 1412 | DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify(); 1413 | } 1414 | 1415 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getDefaultInstance() { 1416 | return DEFAULT_INSTANCE; 1417 | } 1418 | 1419 | private static final com.google.protobuf.Parser 1420 | PARSER = new com.google.protobuf.AbstractParser() { 1421 | @java.lang.Override 1422 | public AddWindBulletNotify parsePartialFrom( 1423 | com.google.protobuf.CodedInputStream input, 1424 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1425 | throws com.google.protobuf.InvalidProtocolBufferException { 1426 | return new AddWindBulletNotify(input, extensionRegistry); 1427 | } 1428 | }; 1429 | 1430 | public static com.google.protobuf.Parser parser() { 1431 | return PARSER; 1432 | } 1433 | 1434 | @java.lang.Override 1435 | public com.google.protobuf.Parser getParserForType() { 1436 | return PARSER; 1437 | } 1438 | 1439 | @java.lang.Override 1440 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getDefaultInstanceForType() { 1441 | return DEFAULT_INSTANCE; 1442 | } 1443 | 1444 | } 1445 | 1446 | public interface AreaNotifyOrBuilder extends 1447 | // @@protoc_insertion_point(interface_extends:WindSeedClientNotify.AreaNotify) 1448 | com.google.protobuf.MessageOrBuilder { 1449 | 1450 | /** 1451 | * uint32 area_id = 12; 1452 | * @return The areaId. 1453 | */ 1454 | int getAreaId(); 1455 | 1456 | /** 1457 | * bytes area_code = 10; 1458 | * @return The areaCode. 1459 | */ 1460 | com.google.protobuf.ByteString getAreaCode(); 1461 | 1462 | /** 1463 | * uint32 area_type = 13; 1464 | * @return The areaType. 1465 | */ 1466 | int getAreaType(); 1467 | } 1468 | /** 1469 | * Protobuf type {@code WindSeedClientNotify.AreaNotify} 1470 | */ 1471 | public static final class AreaNotify extends 1472 | com.google.protobuf.GeneratedMessageV3 implements 1473 | // @@protoc_insertion_point(message_implements:WindSeedClientNotify.AreaNotify) 1474 | AreaNotifyOrBuilder { 1475 | private static final long serialVersionUID = 0L; 1476 | // Use AreaNotify.newBuilder() to construct. 1477 | private AreaNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { 1478 | super(builder); 1479 | } 1480 | private AreaNotify() { 1481 | areaCode_ = com.google.protobuf.ByteString.EMPTY; 1482 | } 1483 | 1484 | @java.lang.Override 1485 | @SuppressWarnings({"unused"}) 1486 | protected java.lang.Object newInstance( 1487 | UnusedPrivateParameter unused) { 1488 | return new AreaNotify(); 1489 | } 1490 | 1491 | @java.lang.Override 1492 | public final com.google.protobuf.UnknownFieldSet 1493 | getUnknownFields() { 1494 | return this.unknownFields; 1495 | } 1496 | private AreaNotify( 1497 | com.google.protobuf.CodedInputStream input, 1498 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1499 | throws com.google.protobuf.InvalidProtocolBufferException { 1500 | this(); 1501 | if (extensionRegistry == null) { 1502 | throw new java.lang.NullPointerException(); 1503 | } 1504 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1505 | com.google.protobuf.UnknownFieldSet.newBuilder(); 1506 | try { 1507 | boolean done = false; 1508 | while (!done) { 1509 | int tag = input.readTag(); 1510 | switch (tag) { 1511 | case 0: 1512 | done = true; 1513 | break; 1514 | case 82: { 1515 | 1516 | areaCode_ = input.readBytes(); 1517 | break; 1518 | } 1519 | case 96: { 1520 | 1521 | areaId_ = input.readUInt32(); 1522 | break; 1523 | } 1524 | case 104: { 1525 | 1526 | areaType_ = input.readUInt32(); 1527 | break; 1528 | } 1529 | default: { 1530 | if (!parseUnknownField( 1531 | input, unknownFields, extensionRegistry, tag)) { 1532 | done = true; 1533 | } 1534 | break; 1535 | } 1536 | } 1537 | } 1538 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1539 | throw e.setUnfinishedMessage(this); 1540 | } catch (java.io.IOException e) { 1541 | throw new com.google.protobuf.InvalidProtocolBufferException( 1542 | e).setUnfinishedMessage(this); 1543 | } finally { 1544 | this.unknownFields = unknownFields.build(); 1545 | makeExtensionsImmutable(); 1546 | } 1547 | } 1548 | public static final com.google.protobuf.Descriptors.Descriptor 1549 | getDescriptor() { 1550 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AreaNotify_descriptor; 1551 | } 1552 | 1553 | @java.lang.Override 1554 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1555 | internalGetFieldAccessorTable() { 1556 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AreaNotify_fieldAccessorTable 1557 | .ensureFieldAccessorsInitialized( 1558 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder.class); 1559 | } 1560 | 1561 | public static final int AREA_ID_FIELD_NUMBER = 12; 1562 | private int areaId_; 1563 | /** 1564 | * uint32 area_id = 12; 1565 | * @return The areaId. 1566 | */ 1567 | @java.lang.Override 1568 | public int getAreaId() { 1569 | return areaId_; 1570 | } 1571 | 1572 | public static final int AREA_CODE_FIELD_NUMBER = 10; 1573 | private com.google.protobuf.ByteString areaCode_; 1574 | /** 1575 | * bytes area_code = 10; 1576 | * @return The areaCode. 1577 | */ 1578 | @java.lang.Override 1579 | public com.google.protobuf.ByteString getAreaCode() { 1580 | return areaCode_; 1581 | } 1582 | 1583 | public static final int AREA_TYPE_FIELD_NUMBER = 13; 1584 | private int areaType_; 1585 | /** 1586 | * uint32 area_type = 13; 1587 | * @return The areaType. 1588 | */ 1589 | @java.lang.Override 1590 | public int getAreaType() { 1591 | return areaType_; 1592 | } 1593 | 1594 | private byte memoizedIsInitialized = -1; 1595 | @java.lang.Override 1596 | public final boolean isInitialized() { 1597 | byte isInitialized = memoizedIsInitialized; 1598 | if (isInitialized == 1) return true; 1599 | if (isInitialized == 0) return false; 1600 | 1601 | memoizedIsInitialized = 1; 1602 | return true; 1603 | } 1604 | 1605 | @java.lang.Override 1606 | public void writeTo(com.google.protobuf.CodedOutputStream output) 1607 | throws java.io.IOException { 1608 | if (!areaCode_.isEmpty()) { 1609 | output.writeBytes(10, areaCode_); 1610 | } 1611 | if (areaId_ != 0) { 1612 | output.writeUInt32(12, areaId_); 1613 | } 1614 | if (areaType_ != 0) { 1615 | output.writeUInt32(13, areaType_); 1616 | } 1617 | unknownFields.writeTo(output); 1618 | } 1619 | 1620 | @java.lang.Override 1621 | public int getSerializedSize() { 1622 | int size = memoizedSize; 1623 | if (size != -1) return size; 1624 | 1625 | size = 0; 1626 | if (!areaCode_.isEmpty()) { 1627 | size += com.google.protobuf.CodedOutputStream 1628 | .computeBytesSize(10, areaCode_); 1629 | } 1630 | if (areaId_ != 0) { 1631 | size += com.google.protobuf.CodedOutputStream 1632 | .computeUInt32Size(12, areaId_); 1633 | } 1634 | if (areaType_ != 0) { 1635 | size += com.google.protobuf.CodedOutputStream 1636 | .computeUInt32Size(13, areaType_); 1637 | } 1638 | size += unknownFields.getSerializedSize(); 1639 | memoizedSize = size; 1640 | return size; 1641 | } 1642 | 1643 | @java.lang.Override 1644 | public boolean equals(final java.lang.Object obj) { 1645 | if (obj == this) { 1646 | return true; 1647 | } 1648 | if (!(obj instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify)) { 1649 | return super.equals(obj); 1650 | } 1651 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify other = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) obj; 1652 | 1653 | if (getAreaId() 1654 | != other.getAreaId()) return false; 1655 | if (!getAreaCode() 1656 | .equals(other.getAreaCode())) return false; 1657 | if (getAreaType() 1658 | != other.getAreaType()) return false; 1659 | if (!unknownFields.equals(other.unknownFields)) return false; 1660 | return true; 1661 | } 1662 | 1663 | @java.lang.Override 1664 | public int hashCode() { 1665 | if (memoizedHashCode != 0) { 1666 | return memoizedHashCode; 1667 | } 1668 | int hash = 41; 1669 | hash = (19 * hash) + getDescriptor().hashCode(); 1670 | hash = (37 * hash) + AREA_ID_FIELD_NUMBER; 1671 | hash = (53 * hash) + getAreaId(); 1672 | hash = (37 * hash) + AREA_CODE_FIELD_NUMBER; 1673 | hash = (53 * hash) + getAreaCode().hashCode(); 1674 | hash = (37 * hash) + AREA_TYPE_FIELD_NUMBER; 1675 | hash = (53 * hash) + getAreaType(); 1676 | hash = (29 * hash) + unknownFields.hashCode(); 1677 | memoizedHashCode = hash; 1678 | return hash; 1679 | } 1680 | 1681 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1682 | java.nio.ByteBuffer data) 1683 | throws com.google.protobuf.InvalidProtocolBufferException { 1684 | return PARSER.parseFrom(data); 1685 | } 1686 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1687 | java.nio.ByteBuffer data, 1688 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1689 | throws com.google.protobuf.InvalidProtocolBufferException { 1690 | return PARSER.parseFrom(data, extensionRegistry); 1691 | } 1692 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1693 | com.google.protobuf.ByteString data) 1694 | throws com.google.protobuf.InvalidProtocolBufferException { 1695 | return PARSER.parseFrom(data); 1696 | } 1697 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1698 | com.google.protobuf.ByteString data, 1699 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1700 | throws com.google.protobuf.InvalidProtocolBufferException { 1701 | return PARSER.parseFrom(data, extensionRegistry); 1702 | } 1703 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom(byte[] data) 1704 | throws com.google.protobuf.InvalidProtocolBufferException { 1705 | return PARSER.parseFrom(data); 1706 | } 1707 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1708 | byte[] data, 1709 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1710 | throws com.google.protobuf.InvalidProtocolBufferException { 1711 | return PARSER.parseFrom(data, extensionRegistry); 1712 | } 1713 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom(java.io.InputStream input) 1714 | throws java.io.IOException { 1715 | return com.google.protobuf.GeneratedMessageV3 1716 | .parseWithIOException(PARSER, input); 1717 | } 1718 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1719 | java.io.InputStream input, 1720 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1721 | throws java.io.IOException { 1722 | return com.google.protobuf.GeneratedMessageV3 1723 | .parseWithIOException(PARSER, input, extensionRegistry); 1724 | } 1725 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseDelimitedFrom(java.io.InputStream input) 1726 | throws java.io.IOException { 1727 | return com.google.protobuf.GeneratedMessageV3 1728 | .parseDelimitedWithIOException(PARSER, input); 1729 | } 1730 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseDelimitedFrom( 1731 | java.io.InputStream input, 1732 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1733 | throws java.io.IOException { 1734 | return com.google.protobuf.GeneratedMessageV3 1735 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 1736 | } 1737 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1738 | com.google.protobuf.CodedInputStream input) 1739 | throws java.io.IOException { 1740 | return com.google.protobuf.GeneratedMessageV3 1741 | .parseWithIOException(PARSER, input); 1742 | } 1743 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parseFrom( 1744 | com.google.protobuf.CodedInputStream input, 1745 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1746 | throws java.io.IOException { 1747 | return com.google.protobuf.GeneratedMessageV3 1748 | .parseWithIOException(PARSER, input, extensionRegistry); 1749 | } 1750 | 1751 | @java.lang.Override 1752 | public Builder newBuilderForType() { return newBuilder(); } 1753 | public static Builder newBuilder() { 1754 | return DEFAULT_INSTANCE.toBuilder(); 1755 | } 1756 | public static Builder newBuilder(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify prototype) { 1757 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1758 | } 1759 | @java.lang.Override 1760 | public Builder toBuilder() { 1761 | return this == DEFAULT_INSTANCE 1762 | ? new Builder() : new Builder().mergeFrom(this); 1763 | } 1764 | 1765 | @java.lang.Override 1766 | protected Builder newBuilderForType( 1767 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1768 | Builder builder = new Builder(parent); 1769 | return builder; 1770 | } 1771 | /** 1772 | * Protobuf type {@code WindSeedClientNotify.AreaNotify} 1773 | */ 1774 | public static final class Builder extends 1775 | com.google.protobuf.GeneratedMessageV3.Builder implements 1776 | // @@protoc_insertion_point(builder_implements:WindSeedClientNotify.AreaNotify) 1777 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder { 1778 | public static final com.google.protobuf.Descriptors.Descriptor 1779 | getDescriptor() { 1780 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AreaNotify_descriptor; 1781 | } 1782 | 1783 | @java.lang.Override 1784 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 1785 | internalGetFieldAccessorTable() { 1786 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AreaNotify_fieldAccessorTable 1787 | .ensureFieldAccessorsInitialized( 1788 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder.class); 1789 | } 1790 | 1791 | // Construct using emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.newBuilder() 1792 | private Builder() { 1793 | maybeForceBuilderInitialization(); 1794 | } 1795 | 1796 | private Builder( 1797 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1798 | super(parent); 1799 | maybeForceBuilderInitialization(); 1800 | } 1801 | private void maybeForceBuilderInitialization() { 1802 | if (com.google.protobuf.GeneratedMessageV3 1803 | .alwaysUseFieldBuilders) { 1804 | } 1805 | } 1806 | @java.lang.Override 1807 | public Builder clear() { 1808 | super.clear(); 1809 | areaId_ = 0; 1810 | 1811 | areaCode_ = com.google.protobuf.ByteString.EMPTY; 1812 | 1813 | areaType_ = 0; 1814 | 1815 | return this; 1816 | } 1817 | 1818 | @java.lang.Override 1819 | public com.google.protobuf.Descriptors.Descriptor 1820 | getDescriptorForType() { 1821 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_AreaNotify_descriptor; 1822 | } 1823 | 1824 | @java.lang.Override 1825 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getDefaultInstanceForType() { 1826 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 1827 | } 1828 | 1829 | @java.lang.Override 1830 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify build() { 1831 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify result = buildPartial(); 1832 | if (!result.isInitialized()) { 1833 | throw newUninitializedMessageException(result); 1834 | } 1835 | return result; 1836 | } 1837 | 1838 | @java.lang.Override 1839 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify buildPartial() { 1840 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify result = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify(this); 1841 | result.areaId_ = areaId_; 1842 | result.areaCode_ = areaCode_; 1843 | result.areaType_ = areaType_; 1844 | onBuilt(); 1845 | return result; 1846 | } 1847 | 1848 | @java.lang.Override 1849 | public Builder clone() { 1850 | return super.clone(); 1851 | } 1852 | @java.lang.Override 1853 | public Builder setField( 1854 | com.google.protobuf.Descriptors.FieldDescriptor field, 1855 | java.lang.Object value) { 1856 | return super.setField(field, value); 1857 | } 1858 | @java.lang.Override 1859 | public Builder clearField( 1860 | com.google.protobuf.Descriptors.FieldDescriptor field) { 1861 | return super.clearField(field); 1862 | } 1863 | @java.lang.Override 1864 | public Builder clearOneof( 1865 | com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1866 | return super.clearOneof(oneof); 1867 | } 1868 | @java.lang.Override 1869 | public Builder setRepeatedField( 1870 | com.google.protobuf.Descriptors.FieldDescriptor field, 1871 | int index, java.lang.Object value) { 1872 | return super.setRepeatedField(field, index, value); 1873 | } 1874 | @java.lang.Override 1875 | public Builder addRepeatedField( 1876 | com.google.protobuf.Descriptors.FieldDescriptor field, 1877 | java.lang.Object value) { 1878 | return super.addRepeatedField(field, value); 1879 | } 1880 | @java.lang.Override 1881 | public Builder mergeFrom(com.google.protobuf.Message other) { 1882 | if (other instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) { 1883 | return mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify)other); 1884 | } else { 1885 | super.mergeFrom(other); 1886 | return this; 1887 | } 1888 | } 1889 | 1890 | public Builder mergeFrom(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify other) { 1891 | if (other == emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance()) return this; 1892 | if (other.getAreaId() != 0) { 1893 | setAreaId(other.getAreaId()); 1894 | } 1895 | if (other.getAreaCode() != com.google.protobuf.ByteString.EMPTY) { 1896 | setAreaCode(other.getAreaCode()); 1897 | } 1898 | if (other.getAreaType() != 0) { 1899 | setAreaType(other.getAreaType()); 1900 | } 1901 | this.mergeUnknownFields(other.unknownFields); 1902 | onChanged(); 1903 | return this; 1904 | } 1905 | 1906 | @java.lang.Override 1907 | public final boolean isInitialized() { 1908 | return true; 1909 | } 1910 | 1911 | @java.lang.Override 1912 | public Builder mergeFrom( 1913 | com.google.protobuf.CodedInputStream input, 1914 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1915 | throws java.io.IOException { 1916 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify parsedMessage = null; 1917 | try { 1918 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1919 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1920 | parsedMessage = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) e.getUnfinishedMessage(); 1921 | throw e.unwrapIOException(); 1922 | } finally { 1923 | if (parsedMessage != null) { 1924 | mergeFrom(parsedMessage); 1925 | } 1926 | } 1927 | return this; 1928 | } 1929 | 1930 | private int areaId_ ; 1931 | /** 1932 | * uint32 area_id = 12; 1933 | * @return The areaId. 1934 | */ 1935 | @java.lang.Override 1936 | public int getAreaId() { 1937 | return areaId_; 1938 | } 1939 | /** 1940 | * uint32 area_id = 12; 1941 | * @param value The areaId to set. 1942 | * @return This builder for chaining. 1943 | */ 1944 | public Builder setAreaId(int value) { 1945 | 1946 | areaId_ = value; 1947 | onChanged(); 1948 | return this; 1949 | } 1950 | /** 1951 | * uint32 area_id = 12; 1952 | * @return This builder for chaining. 1953 | */ 1954 | public Builder clearAreaId() { 1955 | 1956 | areaId_ = 0; 1957 | onChanged(); 1958 | return this; 1959 | } 1960 | 1961 | private com.google.protobuf.ByteString areaCode_ = com.google.protobuf.ByteString.EMPTY; 1962 | /** 1963 | * bytes area_code = 10; 1964 | * @return The areaCode. 1965 | */ 1966 | @java.lang.Override 1967 | public com.google.protobuf.ByteString getAreaCode() { 1968 | return areaCode_; 1969 | } 1970 | /** 1971 | * bytes area_code = 10; 1972 | * @param value The areaCode to set. 1973 | * @return This builder for chaining. 1974 | */ 1975 | public Builder setAreaCode(com.google.protobuf.ByteString value) { 1976 | if (value == null) { 1977 | throw new NullPointerException(); 1978 | } 1979 | 1980 | areaCode_ = value; 1981 | onChanged(); 1982 | return this; 1983 | } 1984 | /** 1985 | * bytes area_code = 10; 1986 | * @return This builder for chaining. 1987 | */ 1988 | public Builder clearAreaCode() { 1989 | 1990 | areaCode_ = getDefaultInstance().getAreaCode(); 1991 | onChanged(); 1992 | return this; 1993 | } 1994 | 1995 | private int areaType_ ; 1996 | /** 1997 | * uint32 area_type = 13; 1998 | * @return The areaType. 1999 | */ 2000 | @java.lang.Override 2001 | public int getAreaType() { 2002 | return areaType_; 2003 | } 2004 | /** 2005 | * uint32 area_type = 13; 2006 | * @param value The areaType to set. 2007 | * @return This builder for chaining. 2008 | */ 2009 | public Builder setAreaType(int value) { 2010 | 2011 | areaType_ = value; 2012 | onChanged(); 2013 | return this; 2014 | } 2015 | /** 2016 | * uint32 area_type = 13; 2017 | * @return This builder for chaining. 2018 | */ 2019 | public Builder clearAreaType() { 2020 | 2021 | areaType_ = 0; 2022 | onChanged(); 2023 | return this; 2024 | } 2025 | @java.lang.Override 2026 | public final Builder setUnknownFields( 2027 | final com.google.protobuf.UnknownFieldSet unknownFields) { 2028 | return super.setUnknownFields(unknownFields); 2029 | } 2030 | 2031 | @java.lang.Override 2032 | public final Builder mergeUnknownFields( 2033 | final com.google.protobuf.UnknownFieldSet unknownFields) { 2034 | return super.mergeUnknownFields(unknownFields); 2035 | } 2036 | 2037 | 2038 | // @@protoc_insertion_point(builder_scope:WindSeedClientNotify.AreaNotify) 2039 | } 2040 | 2041 | // @@protoc_insertion_point(class_scope:WindSeedClientNotify.AreaNotify) 2042 | private static final emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify DEFAULT_INSTANCE; 2043 | static { 2044 | DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify(); 2045 | } 2046 | 2047 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getDefaultInstance() { 2048 | return DEFAULT_INSTANCE; 2049 | } 2050 | 2051 | private static final com.google.protobuf.Parser 2052 | PARSER = new com.google.protobuf.AbstractParser() { 2053 | @java.lang.Override 2054 | public AreaNotify parsePartialFrom( 2055 | com.google.protobuf.CodedInputStream input, 2056 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2057 | throws com.google.protobuf.InvalidProtocolBufferException { 2058 | return new AreaNotify(input, extensionRegistry); 2059 | } 2060 | }; 2061 | 2062 | public static com.google.protobuf.Parser parser() { 2063 | return PARSER; 2064 | } 2065 | 2066 | @java.lang.Override 2067 | public com.google.protobuf.Parser getParserForType() { 2068 | return PARSER; 2069 | } 2070 | 2071 | @java.lang.Override 2072 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getDefaultInstanceForType() { 2073 | return DEFAULT_INSTANCE; 2074 | } 2075 | 2076 | } 2077 | 2078 | private int notifyCase_ = 0; 2079 | private java.lang.Object notify_; 2080 | public enum NotifyCase 2081 | implements com.google.protobuf.Internal.EnumLite, 2082 | com.google.protobuf.AbstractMessage.InternalOneOfEnum { 2083 | REFRESH_NOTIFY(14), 2084 | ADD_WIND_BULLET_NOTIFY(7), 2085 | AREA_NOTIFY(5), 2086 | NOTIFY_NOT_SET(0); 2087 | private final int value; 2088 | private NotifyCase(int value) { 2089 | this.value = value; 2090 | } 2091 | /** 2092 | * @param value The number of the enum to look for. 2093 | * @return The enum associated with the given number. 2094 | * @deprecated Use {@link #forNumber(int)} instead. 2095 | */ 2096 | @java.lang.Deprecated 2097 | public static NotifyCase valueOf(int value) { 2098 | return forNumber(value); 2099 | } 2100 | 2101 | public static NotifyCase forNumber(int value) { 2102 | switch (value) { 2103 | case 14: return REFRESH_NOTIFY; 2104 | case 7: return ADD_WIND_BULLET_NOTIFY; 2105 | case 5: return AREA_NOTIFY; 2106 | case 0: return NOTIFY_NOT_SET; 2107 | default: return null; 2108 | } 2109 | } 2110 | public int getNumber() { 2111 | return this.value; 2112 | } 2113 | }; 2114 | 2115 | public NotifyCase 2116 | getNotifyCase() { 2117 | return NotifyCase.forNumber( 2118 | notifyCase_); 2119 | } 2120 | 2121 | public static final int REFRESH_NOTIFY_FIELD_NUMBER = 14; 2122 | /** 2123 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2124 | * @return Whether the refreshNotify field is set. 2125 | */ 2126 | @java.lang.Override 2127 | public boolean hasRefreshNotify() { 2128 | return notifyCase_ == 14; 2129 | } 2130 | /** 2131 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2132 | * @return The refreshNotify. 2133 | */ 2134 | @java.lang.Override 2135 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getRefreshNotify() { 2136 | if (notifyCase_ == 14) { 2137 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_; 2138 | } 2139 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2140 | } 2141 | /** 2142 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2143 | */ 2144 | @java.lang.Override 2145 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder getRefreshNotifyOrBuilder() { 2146 | if (notifyCase_ == 14) { 2147 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_; 2148 | } 2149 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2150 | } 2151 | 2152 | public static final int ADD_WIND_BULLET_NOTIFY_FIELD_NUMBER = 7; 2153 | /** 2154 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2155 | * @return Whether the addWindBulletNotify field is set. 2156 | */ 2157 | @java.lang.Override 2158 | public boolean hasAddWindBulletNotify() { 2159 | return notifyCase_ == 7; 2160 | } 2161 | /** 2162 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2163 | * @return The addWindBulletNotify. 2164 | */ 2165 | @java.lang.Override 2166 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getAddWindBulletNotify() { 2167 | if (notifyCase_ == 7) { 2168 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_; 2169 | } 2170 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2171 | } 2172 | /** 2173 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2174 | */ 2175 | @java.lang.Override 2176 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder getAddWindBulletNotifyOrBuilder() { 2177 | if (notifyCase_ == 7) { 2178 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_; 2179 | } 2180 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2181 | } 2182 | 2183 | public static final int AREA_NOTIFY_FIELD_NUMBER = 5; 2184 | /** 2185 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2186 | * @return Whether the areaNotify field is set. 2187 | */ 2188 | @java.lang.Override 2189 | public boolean hasAreaNotify() { 2190 | return notifyCase_ == 5; 2191 | } 2192 | /** 2193 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2194 | * @return The areaNotify. 2195 | */ 2196 | @java.lang.Override 2197 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getAreaNotify() { 2198 | if (notifyCase_ == 5) { 2199 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_; 2200 | } 2201 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 2202 | } 2203 | /** 2204 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2205 | */ 2206 | @java.lang.Override 2207 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder getAreaNotifyOrBuilder() { 2208 | if (notifyCase_ == 5) { 2209 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_; 2210 | } 2211 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 2212 | } 2213 | 2214 | private byte memoizedIsInitialized = -1; 2215 | @java.lang.Override 2216 | public final boolean isInitialized() { 2217 | byte isInitialized = memoizedIsInitialized; 2218 | if (isInitialized == 1) return true; 2219 | if (isInitialized == 0) return false; 2220 | 2221 | memoizedIsInitialized = 1; 2222 | return true; 2223 | } 2224 | 2225 | @java.lang.Override 2226 | public void writeTo(com.google.protobuf.CodedOutputStream output) 2227 | throws java.io.IOException { 2228 | if (notifyCase_ == 5) { 2229 | output.writeMessage(5, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_); 2230 | } 2231 | if (notifyCase_ == 7) { 2232 | output.writeMessage(7, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_); 2233 | } 2234 | if (notifyCase_ == 14) { 2235 | output.writeMessage(14, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_); 2236 | } 2237 | unknownFields.writeTo(output); 2238 | } 2239 | 2240 | @java.lang.Override 2241 | public int getSerializedSize() { 2242 | int size = memoizedSize; 2243 | if (size != -1) return size; 2244 | 2245 | size = 0; 2246 | if (notifyCase_ == 5) { 2247 | size += com.google.protobuf.CodedOutputStream 2248 | .computeMessageSize(5, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_); 2249 | } 2250 | if (notifyCase_ == 7) { 2251 | size += com.google.protobuf.CodedOutputStream 2252 | .computeMessageSize(7, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_); 2253 | } 2254 | if (notifyCase_ == 14) { 2255 | size += com.google.protobuf.CodedOutputStream 2256 | .computeMessageSize(14, (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_); 2257 | } 2258 | size += unknownFields.getSerializedSize(); 2259 | memoizedSize = size; 2260 | return size; 2261 | } 2262 | 2263 | @java.lang.Override 2264 | public boolean equals(final java.lang.Object obj) { 2265 | if (obj == this) { 2266 | return true; 2267 | } 2268 | if (!(obj instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify)) { 2269 | return super.equals(obj); 2270 | } 2271 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify other = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify) obj; 2272 | 2273 | if (!getNotifyCase().equals(other.getNotifyCase())) return false; 2274 | switch (notifyCase_) { 2275 | case 14: 2276 | if (!getRefreshNotify() 2277 | .equals(other.getRefreshNotify())) return false; 2278 | break; 2279 | case 7: 2280 | if (!getAddWindBulletNotify() 2281 | .equals(other.getAddWindBulletNotify())) return false; 2282 | break; 2283 | case 5: 2284 | if (!getAreaNotify() 2285 | .equals(other.getAreaNotify())) return false; 2286 | break; 2287 | case 0: 2288 | default: 2289 | } 2290 | if (!unknownFields.equals(other.unknownFields)) return false; 2291 | return true; 2292 | } 2293 | 2294 | @java.lang.Override 2295 | public int hashCode() { 2296 | if (memoizedHashCode != 0) { 2297 | return memoizedHashCode; 2298 | } 2299 | int hash = 41; 2300 | hash = (19 * hash) + getDescriptor().hashCode(); 2301 | switch (notifyCase_) { 2302 | case 14: 2303 | hash = (37 * hash) + REFRESH_NOTIFY_FIELD_NUMBER; 2304 | hash = (53 * hash) + getRefreshNotify().hashCode(); 2305 | break; 2306 | case 7: 2307 | hash = (37 * hash) + ADD_WIND_BULLET_NOTIFY_FIELD_NUMBER; 2308 | hash = (53 * hash) + getAddWindBulletNotify().hashCode(); 2309 | break; 2310 | case 5: 2311 | hash = (37 * hash) + AREA_NOTIFY_FIELD_NUMBER; 2312 | hash = (53 * hash) + getAreaNotify().hashCode(); 2313 | break; 2314 | case 0: 2315 | default: 2316 | } 2317 | hash = (29 * hash) + unknownFields.hashCode(); 2318 | memoizedHashCode = hash; 2319 | return hash; 2320 | } 2321 | 2322 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2323 | java.nio.ByteBuffer data) 2324 | throws com.google.protobuf.InvalidProtocolBufferException { 2325 | return PARSER.parseFrom(data); 2326 | } 2327 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2328 | java.nio.ByteBuffer data, 2329 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2330 | throws com.google.protobuf.InvalidProtocolBufferException { 2331 | return PARSER.parseFrom(data, extensionRegistry); 2332 | } 2333 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2334 | com.google.protobuf.ByteString data) 2335 | throws com.google.protobuf.InvalidProtocolBufferException { 2336 | return PARSER.parseFrom(data); 2337 | } 2338 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2339 | com.google.protobuf.ByteString data, 2340 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2341 | throws com.google.protobuf.InvalidProtocolBufferException { 2342 | return PARSER.parseFrom(data, extensionRegistry); 2343 | } 2344 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom(byte[] data) 2345 | throws com.google.protobuf.InvalidProtocolBufferException { 2346 | return PARSER.parseFrom(data); 2347 | } 2348 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2349 | byte[] data, 2350 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2351 | throws com.google.protobuf.InvalidProtocolBufferException { 2352 | return PARSER.parseFrom(data, extensionRegistry); 2353 | } 2354 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom(java.io.InputStream input) 2355 | throws java.io.IOException { 2356 | return com.google.protobuf.GeneratedMessageV3 2357 | .parseWithIOException(PARSER, input); 2358 | } 2359 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2360 | java.io.InputStream input, 2361 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2362 | throws java.io.IOException { 2363 | return com.google.protobuf.GeneratedMessageV3 2364 | .parseWithIOException(PARSER, input, extensionRegistry); 2365 | } 2366 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseDelimitedFrom(java.io.InputStream input) 2367 | throws java.io.IOException { 2368 | return com.google.protobuf.GeneratedMessageV3 2369 | .parseDelimitedWithIOException(PARSER, input); 2370 | } 2371 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseDelimitedFrom( 2372 | java.io.InputStream input, 2373 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2374 | throws java.io.IOException { 2375 | return com.google.protobuf.GeneratedMessageV3 2376 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 2377 | } 2378 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2379 | com.google.protobuf.CodedInputStream input) 2380 | throws java.io.IOException { 2381 | return com.google.protobuf.GeneratedMessageV3 2382 | .parseWithIOException(PARSER, input); 2383 | } 2384 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parseFrom( 2385 | com.google.protobuf.CodedInputStream input, 2386 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2387 | throws java.io.IOException { 2388 | return com.google.protobuf.GeneratedMessageV3 2389 | .parseWithIOException(PARSER, input, extensionRegistry); 2390 | } 2391 | 2392 | @java.lang.Override 2393 | public Builder newBuilderForType() { return newBuilder(); } 2394 | public static Builder newBuilder() { 2395 | return DEFAULT_INSTANCE.toBuilder(); 2396 | } 2397 | public static Builder newBuilder(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify prototype) { 2398 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2399 | } 2400 | @java.lang.Override 2401 | public Builder toBuilder() { 2402 | return this == DEFAULT_INSTANCE 2403 | ? new Builder() : new Builder().mergeFrom(this); 2404 | } 2405 | 2406 | @java.lang.Override 2407 | protected Builder newBuilderForType( 2408 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2409 | Builder builder = new Builder(parent); 2410 | return builder; 2411 | } 2412 | /** 2413 | *
2414 |      * enum CmdId {
2415 |      *   option allow_alias = true;
2416 |      *   NONE = 0;
2417 |      *   CMD_ID = 1157;
2418 |      *   ENET_CHANNEL_ID = 0;
2419 |      *   ENET_IS_RELIABLE = 1;
2420 |      * }
2421 |      * 
2422 | * 2423 | * Protobuf type {@code WindSeedClientNotify} 2424 | */ 2425 | public static final class Builder extends 2426 | com.google.protobuf.GeneratedMessageV3.Builder implements 2427 | // @@protoc_insertion_point(builder_implements:WindSeedClientNotify) 2428 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotifyOrBuilder { 2429 | public static final com.google.protobuf.Descriptors.Descriptor 2430 | getDescriptor() { 2431 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_descriptor; 2432 | } 2433 | 2434 | @java.lang.Override 2435 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 2436 | internalGetFieldAccessorTable() { 2437 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_fieldAccessorTable 2438 | .ensureFieldAccessorsInitialized( 2439 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.class, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.Builder.class); 2440 | } 2441 | 2442 | // Construct using emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.newBuilder() 2443 | private Builder() { 2444 | maybeForceBuilderInitialization(); 2445 | } 2446 | 2447 | private Builder( 2448 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2449 | super(parent); 2450 | maybeForceBuilderInitialization(); 2451 | } 2452 | private void maybeForceBuilderInitialization() { 2453 | if (com.google.protobuf.GeneratedMessageV3 2454 | .alwaysUseFieldBuilders) { 2455 | } 2456 | } 2457 | @java.lang.Override 2458 | public Builder clear() { 2459 | super.clear(); 2460 | notifyCase_ = 0; 2461 | notify_ = null; 2462 | return this; 2463 | } 2464 | 2465 | @java.lang.Override 2466 | public com.google.protobuf.Descriptors.Descriptor 2467 | getDescriptorForType() { 2468 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.internal_static_WindSeedClientNotify_descriptor; 2469 | } 2470 | 2471 | @java.lang.Override 2472 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify getDefaultInstanceForType() { 2473 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.getDefaultInstance(); 2474 | } 2475 | 2476 | @java.lang.Override 2477 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify build() { 2478 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify result = buildPartial(); 2479 | if (!result.isInitialized()) { 2480 | throw newUninitializedMessageException(result); 2481 | } 2482 | return result; 2483 | } 2484 | 2485 | @java.lang.Override 2486 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify buildPartial() { 2487 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify result = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify(this); 2488 | if (notifyCase_ == 14) { 2489 | if (refreshNotifyBuilder_ == null) { 2490 | result.notify_ = notify_; 2491 | } else { 2492 | result.notify_ = refreshNotifyBuilder_.build(); 2493 | } 2494 | } 2495 | if (notifyCase_ == 7) { 2496 | if (addWindBulletNotifyBuilder_ == null) { 2497 | result.notify_ = notify_; 2498 | } else { 2499 | result.notify_ = addWindBulletNotifyBuilder_.build(); 2500 | } 2501 | } 2502 | if (notifyCase_ == 5) { 2503 | if (areaNotifyBuilder_ == null) { 2504 | result.notify_ = notify_; 2505 | } else { 2506 | result.notify_ = areaNotifyBuilder_.build(); 2507 | } 2508 | } 2509 | result.notifyCase_ = notifyCase_; 2510 | onBuilt(); 2511 | return result; 2512 | } 2513 | 2514 | @java.lang.Override 2515 | public Builder clone() { 2516 | return super.clone(); 2517 | } 2518 | @java.lang.Override 2519 | public Builder setField( 2520 | com.google.protobuf.Descriptors.FieldDescriptor field, 2521 | java.lang.Object value) { 2522 | return super.setField(field, value); 2523 | } 2524 | @java.lang.Override 2525 | public Builder clearField( 2526 | com.google.protobuf.Descriptors.FieldDescriptor field) { 2527 | return super.clearField(field); 2528 | } 2529 | @java.lang.Override 2530 | public Builder clearOneof( 2531 | com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2532 | return super.clearOneof(oneof); 2533 | } 2534 | @java.lang.Override 2535 | public Builder setRepeatedField( 2536 | com.google.protobuf.Descriptors.FieldDescriptor field, 2537 | int index, java.lang.Object value) { 2538 | return super.setRepeatedField(field, index, value); 2539 | } 2540 | @java.lang.Override 2541 | public Builder addRepeatedField( 2542 | com.google.protobuf.Descriptors.FieldDescriptor field, 2543 | java.lang.Object value) { 2544 | return super.addRepeatedField(field, value); 2545 | } 2546 | @java.lang.Override 2547 | public Builder mergeFrom(com.google.protobuf.Message other) { 2548 | if (other instanceof emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify) { 2549 | return mergeFrom((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify)other); 2550 | } else { 2551 | super.mergeFrom(other); 2552 | return this; 2553 | } 2554 | } 2555 | 2556 | public Builder mergeFrom(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify other) { 2557 | if (other == emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.getDefaultInstance()) return this; 2558 | switch (other.getNotifyCase()) { 2559 | case REFRESH_NOTIFY: { 2560 | mergeRefreshNotify(other.getRefreshNotify()); 2561 | break; 2562 | } 2563 | case ADD_WIND_BULLET_NOTIFY: { 2564 | mergeAddWindBulletNotify(other.getAddWindBulletNotify()); 2565 | break; 2566 | } 2567 | case AREA_NOTIFY: { 2568 | mergeAreaNotify(other.getAreaNotify()); 2569 | break; 2570 | } 2571 | case NOTIFY_NOT_SET: { 2572 | break; 2573 | } 2574 | } 2575 | this.mergeUnknownFields(other.unknownFields); 2576 | onChanged(); 2577 | return this; 2578 | } 2579 | 2580 | @java.lang.Override 2581 | public final boolean isInitialized() { 2582 | return true; 2583 | } 2584 | 2585 | @java.lang.Override 2586 | public Builder mergeFrom( 2587 | com.google.protobuf.CodedInputStream input, 2588 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2589 | throws java.io.IOException { 2590 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify parsedMessage = null; 2591 | try { 2592 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2593 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2594 | parsedMessage = (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify) e.getUnfinishedMessage(); 2595 | throw e.unwrapIOException(); 2596 | } finally { 2597 | if (parsedMessage != null) { 2598 | mergeFrom(parsedMessage); 2599 | } 2600 | } 2601 | return this; 2602 | } 2603 | private int notifyCase_ = 0; 2604 | private java.lang.Object notify_; 2605 | public NotifyCase 2606 | getNotifyCase() { 2607 | return NotifyCase.forNumber( 2608 | notifyCase_); 2609 | } 2610 | 2611 | public Builder clearNotify() { 2612 | notifyCase_ = 0; 2613 | notify_ = null; 2614 | onChanged(); 2615 | return this; 2616 | } 2617 | 2618 | 2619 | private com.google.protobuf.SingleFieldBuilderV3< 2620 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder> refreshNotifyBuilder_; 2621 | /** 2622 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2623 | * @return Whether the refreshNotify field is set. 2624 | */ 2625 | @java.lang.Override 2626 | public boolean hasRefreshNotify() { 2627 | return notifyCase_ == 14; 2628 | } 2629 | /** 2630 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2631 | * @return The refreshNotify. 2632 | */ 2633 | @java.lang.Override 2634 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify getRefreshNotify() { 2635 | if (refreshNotifyBuilder_ == null) { 2636 | if (notifyCase_ == 14) { 2637 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_; 2638 | } 2639 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2640 | } else { 2641 | if (notifyCase_ == 14) { 2642 | return refreshNotifyBuilder_.getMessage(); 2643 | } 2644 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2645 | } 2646 | } 2647 | /** 2648 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2649 | */ 2650 | public Builder setRefreshNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify value) { 2651 | if (refreshNotifyBuilder_ == null) { 2652 | if (value == null) { 2653 | throw new NullPointerException(); 2654 | } 2655 | notify_ = value; 2656 | onChanged(); 2657 | } else { 2658 | refreshNotifyBuilder_.setMessage(value); 2659 | } 2660 | notifyCase_ = 14; 2661 | return this; 2662 | } 2663 | /** 2664 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2665 | */ 2666 | public Builder setRefreshNotify( 2667 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder builderForValue) { 2668 | if (refreshNotifyBuilder_ == null) { 2669 | notify_ = builderForValue.build(); 2670 | onChanged(); 2671 | } else { 2672 | refreshNotifyBuilder_.setMessage(builderForValue.build()); 2673 | } 2674 | notifyCase_ = 14; 2675 | return this; 2676 | } 2677 | /** 2678 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2679 | */ 2680 | public Builder mergeRefreshNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify value) { 2681 | if (refreshNotifyBuilder_ == null) { 2682 | if (notifyCase_ == 14 && 2683 | notify_ != emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance()) { 2684 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.newBuilder((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_) 2685 | .mergeFrom(value).buildPartial(); 2686 | } else { 2687 | notify_ = value; 2688 | } 2689 | onChanged(); 2690 | } else { 2691 | if (notifyCase_ == 14) { 2692 | refreshNotifyBuilder_.mergeFrom(value); 2693 | } 2694 | refreshNotifyBuilder_.setMessage(value); 2695 | } 2696 | notifyCase_ = 14; 2697 | return this; 2698 | } 2699 | /** 2700 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2701 | */ 2702 | public Builder clearRefreshNotify() { 2703 | if (refreshNotifyBuilder_ == null) { 2704 | if (notifyCase_ == 14) { 2705 | notifyCase_ = 0; 2706 | notify_ = null; 2707 | onChanged(); 2708 | } 2709 | } else { 2710 | if (notifyCase_ == 14) { 2711 | notifyCase_ = 0; 2712 | notify_ = null; 2713 | } 2714 | refreshNotifyBuilder_.clear(); 2715 | } 2716 | return this; 2717 | } 2718 | /** 2719 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2720 | */ 2721 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder getRefreshNotifyBuilder() { 2722 | return getRefreshNotifyFieldBuilder().getBuilder(); 2723 | } 2724 | /** 2725 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2726 | */ 2727 | @java.lang.Override 2728 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder getRefreshNotifyOrBuilder() { 2729 | if ((notifyCase_ == 14) && (refreshNotifyBuilder_ != null)) { 2730 | return refreshNotifyBuilder_.getMessageOrBuilder(); 2731 | } else { 2732 | if (notifyCase_ == 14) { 2733 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_; 2734 | } 2735 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2736 | } 2737 | } 2738 | /** 2739 | * .WindSeedClientNotify.RefreshNotify refresh_notify = 14; 2740 | */ 2741 | private com.google.protobuf.SingleFieldBuilderV3< 2742 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder> 2743 | getRefreshNotifyFieldBuilder() { 2744 | if (refreshNotifyBuilder_ == null) { 2745 | if (!(notifyCase_ == 14)) { 2746 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.getDefaultInstance(); 2747 | } 2748 | refreshNotifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 2749 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotifyOrBuilder>( 2750 | (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.RefreshNotify) notify_, 2751 | getParentForChildren(), 2752 | isClean()); 2753 | notify_ = null; 2754 | } 2755 | notifyCase_ = 14; 2756 | onChanged();; 2757 | return refreshNotifyBuilder_; 2758 | } 2759 | 2760 | private com.google.protobuf.SingleFieldBuilderV3< 2761 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder> addWindBulletNotifyBuilder_; 2762 | /** 2763 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2764 | * @return Whether the addWindBulletNotify field is set. 2765 | */ 2766 | @java.lang.Override 2767 | public boolean hasAddWindBulletNotify() { 2768 | return notifyCase_ == 7; 2769 | } 2770 | /** 2771 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2772 | * @return The addWindBulletNotify. 2773 | */ 2774 | @java.lang.Override 2775 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify getAddWindBulletNotify() { 2776 | if (addWindBulletNotifyBuilder_ == null) { 2777 | if (notifyCase_ == 7) { 2778 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_; 2779 | } 2780 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2781 | } else { 2782 | if (notifyCase_ == 7) { 2783 | return addWindBulletNotifyBuilder_.getMessage(); 2784 | } 2785 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2786 | } 2787 | } 2788 | /** 2789 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2790 | */ 2791 | public Builder setAddWindBulletNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify value) { 2792 | if (addWindBulletNotifyBuilder_ == null) { 2793 | if (value == null) { 2794 | throw new NullPointerException(); 2795 | } 2796 | notify_ = value; 2797 | onChanged(); 2798 | } else { 2799 | addWindBulletNotifyBuilder_.setMessage(value); 2800 | } 2801 | notifyCase_ = 7; 2802 | return this; 2803 | } 2804 | /** 2805 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2806 | */ 2807 | public Builder setAddWindBulletNotify( 2808 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder builderForValue) { 2809 | if (addWindBulletNotifyBuilder_ == null) { 2810 | notify_ = builderForValue.build(); 2811 | onChanged(); 2812 | } else { 2813 | addWindBulletNotifyBuilder_.setMessage(builderForValue.build()); 2814 | } 2815 | notifyCase_ = 7; 2816 | return this; 2817 | } 2818 | /** 2819 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2820 | */ 2821 | public Builder mergeAddWindBulletNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify value) { 2822 | if (addWindBulletNotifyBuilder_ == null) { 2823 | if (notifyCase_ == 7 && 2824 | notify_ != emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance()) { 2825 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.newBuilder((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_) 2826 | .mergeFrom(value).buildPartial(); 2827 | } else { 2828 | notify_ = value; 2829 | } 2830 | onChanged(); 2831 | } else { 2832 | if (notifyCase_ == 7) { 2833 | addWindBulletNotifyBuilder_.mergeFrom(value); 2834 | } 2835 | addWindBulletNotifyBuilder_.setMessage(value); 2836 | } 2837 | notifyCase_ = 7; 2838 | return this; 2839 | } 2840 | /** 2841 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2842 | */ 2843 | public Builder clearAddWindBulletNotify() { 2844 | if (addWindBulletNotifyBuilder_ == null) { 2845 | if (notifyCase_ == 7) { 2846 | notifyCase_ = 0; 2847 | notify_ = null; 2848 | onChanged(); 2849 | } 2850 | } else { 2851 | if (notifyCase_ == 7) { 2852 | notifyCase_ = 0; 2853 | notify_ = null; 2854 | } 2855 | addWindBulletNotifyBuilder_.clear(); 2856 | } 2857 | return this; 2858 | } 2859 | /** 2860 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2861 | */ 2862 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder getAddWindBulletNotifyBuilder() { 2863 | return getAddWindBulletNotifyFieldBuilder().getBuilder(); 2864 | } 2865 | /** 2866 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2867 | */ 2868 | @java.lang.Override 2869 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder getAddWindBulletNotifyOrBuilder() { 2870 | if ((notifyCase_ == 7) && (addWindBulletNotifyBuilder_ != null)) { 2871 | return addWindBulletNotifyBuilder_.getMessageOrBuilder(); 2872 | } else { 2873 | if (notifyCase_ == 7) { 2874 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_; 2875 | } 2876 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2877 | } 2878 | } 2879 | /** 2880 | * .WindSeedClientNotify.AddWindBulletNotify add_wind_bullet_notify = 7; 2881 | */ 2882 | private com.google.protobuf.SingleFieldBuilderV3< 2883 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder> 2884 | getAddWindBulletNotifyFieldBuilder() { 2885 | if (addWindBulletNotifyBuilder_ == null) { 2886 | if (!(notifyCase_ == 7)) { 2887 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.getDefaultInstance(); 2888 | } 2889 | addWindBulletNotifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 2890 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotifyOrBuilder>( 2891 | (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AddWindBulletNotify) notify_, 2892 | getParentForChildren(), 2893 | isClean()); 2894 | notify_ = null; 2895 | } 2896 | notifyCase_ = 7; 2897 | onChanged();; 2898 | return addWindBulletNotifyBuilder_; 2899 | } 2900 | 2901 | private com.google.protobuf.SingleFieldBuilderV3< 2902 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder> areaNotifyBuilder_; 2903 | /** 2904 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2905 | * @return Whether the areaNotify field is set. 2906 | */ 2907 | @java.lang.Override 2908 | public boolean hasAreaNotify() { 2909 | return notifyCase_ == 5; 2910 | } 2911 | /** 2912 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2913 | * @return The areaNotify. 2914 | */ 2915 | @java.lang.Override 2916 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify getAreaNotify() { 2917 | if (areaNotifyBuilder_ == null) { 2918 | if (notifyCase_ == 5) { 2919 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_; 2920 | } 2921 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 2922 | } else { 2923 | if (notifyCase_ == 5) { 2924 | return areaNotifyBuilder_.getMessage(); 2925 | } 2926 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 2927 | } 2928 | } 2929 | /** 2930 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2931 | */ 2932 | public Builder setAreaNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify value) { 2933 | if (areaNotifyBuilder_ == null) { 2934 | if (value == null) { 2935 | throw new NullPointerException(); 2936 | } 2937 | notify_ = value; 2938 | onChanged(); 2939 | } else { 2940 | areaNotifyBuilder_.setMessage(value); 2941 | } 2942 | notifyCase_ = 5; 2943 | return this; 2944 | } 2945 | /** 2946 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2947 | */ 2948 | public Builder setAreaNotify( 2949 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder builderForValue) { 2950 | if (areaNotifyBuilder_ == null) { 2951 | notify_ = builderForValue.build(); 2952 | onChanged(); 2953 | } else { 2954 | areaNotifyBuilder_.setMessage(builderForValue.build()); 2955 | } 2956 | notifyCase_ = 5; 2957 | return this; 2958 | } 2959 | /** 2960 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2961 | */ 2962 | public Builder mergeAreaNotify(emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify value) { 2963 | if (areaNotifyBuilder_ == null) { 2964 | if (notifyCase_ == 5 && 2965 | notify_ != emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance()) { 2966 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.newBuilder((emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_) 2967 | .mergeFrom(value).buildPartial(); 2968 | } else { 2969 | notify_ = value; 2970 | } 2971 | onChanged(); 2972 | } else { 2973 | if (notifyCase_ == 5) { 2974 | areaNotifyBuilder_.mergeFrom(value); 2975 | } 2976 | areaNotifyBuilder_.setMessage(value); 2977 | } 2978 | notifyCase_ = 5; 2979 | return this; 2980 | } 2981 | /** 2982 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 2983 | */ 2984 | public Builder clearAreaNotify() { 2985 | if (areaNotifyBuilder_ == null) { 2986 | if (notifyCase_ == 5) { 2987 | notifyCase_ = 0; 2988 | notify_ = null; 2989 | onChanged(); 2990 | } 2991 | } else { 2992 | if (notifyCase_ == 5) { 2993 | notifyCase_ = 0; 2994 | notify_ = null; 2995 | } 2996 | areaNotifyBuilder_.clear(); 2997 | } 2998 | return this; 2999 | } 3000 | /** 3001 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 3002 | */ 3003 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder getAreaNotifyBuilder() { 3004 | return getAreaNotifyFieldBuilder().getBuilder(); 3005 | } 3006 | /** 3007 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 3008 | */ 3009 | @java.lang.Override 3010 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder getAreaNotifyOrBuilder() { 3011 | if ((notifyCase_ == 5) && (areaNotifyBuilder_ != null)) { 3012 | return areaNotifyBuilder_.getMessageOrBuilder(); 3013 | } else { 3014 | if (notifyCase_ == 5) { 3015 | return (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_; 3016 | } 3017 | return emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 3018 | } 3019 | } 3020 | /** 3021 | * .WindSeedClientNotify.AreaNotify area_notify = 5; 3022 | */ 3023 | private com.google.protobuf.SingleFieldBuilderV3< 3024 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder> 3025 | getAreaNotifyFieldBuilder() { 3026 | if (areaNotifyBuilder_ == null) { 3027 | if (!(notifyCase_ == 5)) { 3028 | notify_ = emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.getDefaultInstance(); 3029 | } 3030 | areaNotifyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 3031 | emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify.Builder, emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotifyOrBuilder>( 3032 | (emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify) notify_, 3033 | getParentForChildren(), 3034 | isClean()); 3035 | notify_ = null; 3036 | } 3037 | notifyCase_ = 5; 3038 | onChanged();; 3039 | return areaNotifyBuilder_; 3040 | } 3041 | @java.lang.Override 3042 | public final Builder setUnknownFields( 3043 | final com.google.protobuf.UnknownFieldSet unknownFields) { 3044 | return super.setUnknownFields(unknownFields); 3045 | } 3046 | 3047 | @java.lang.Override 3048 | public final Builder mergeUnknownFields( 3049 | final com.google.protobuf.UnknownFieldSet unknownFields) { 3050 | return super.mergeUnknownFields(unknownFields); 3051 | } 3052 | 3053 | 3054 | // @@protoc_insertion_point(builder_scope:WindSeedClientNotify) 3055 | } 3056 | 3057 | // @@protoc_insertion_point(class_scope:WindSeedClientNotify) 3058 | private static final emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify DEFAULT_INSTANCE; 3059 | static { 3060 | DEFAULT_INSTANCE = new emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify(); 3061 | } 3062 | 3063 | public static emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify getDefaultInstance() { 3064 | return DEFAULT_INSTANCE; 3065 | } 3066 | 3067 | private static final com.google.protobuf.Parser 3068 | PARSER = new com.google.protobuf.AbstractParser() { 3069 | @java.lang.Override 3070 | public WindSeedClientNotify parsePartialFrom( 3071 | com.google.protobuf.CodedInputStream input, 3072 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3073 | throws com.google.protobuf.InvalidProtocolBufferException { 3074 | return new WindSeedClientNotify(input, extensionRegistry); 3075 | } 3076 | }; 3077 | 3078 | public static com.google.protobuf.Parser parser() { 3079 | return PARSER; 3080 | } 3081 | 3082 | @java.lang.Override 3083 | public com.google.protobuf.Parser getParserForType() { 3084 | return PARSER; 3085 | } 3086 | 3087 | @java.lang.Override 3088 | public emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify getDefaultInstanceForType() { 3089 | return DEFAULT_INSTANCE; 3090 | } 3091 | 3092 | } 3093 | 3094 | private static final com.google.protobuf.Descriptors.Descriptor 3095 | internal_static_WindSeedClientNotify_descriptor; 3096 | private static final 3097 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3098 | internal_static_WindSeedClientNotify_fieldAccessorTable; 3099 | private static final com.google.protobuf.Descriptors.Descriptor 3100 | internal_static_WindSeedClientNotify_RefreshNotify_descriptor; 3101 | private static final 3102 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3103 | internal_static_WindSeedClientNotify_RefreshNotify_fieldAccessorTable; 3104 | private static final com.google.protobuf.Descriptors.Descriptor 3105 | internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor; 3106 | private static final 3107 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3108 | internal_static_WindSeedClientNotify_AddWindBulletNotify_fieldAccessorTable; 3109 | private static final com.google.protobuf.Descriptors.Descriptor 3110 | internal_static_WindSeedClientNotify_AreaNotify_descriptor; 3111 | private static final 3112 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 3113 | internal_static_WindSeedClientNotify_AreaNotify_fieldAccessorTable; 3114 | 3115 | public static com.google.protobuf.Descriptors.FileDescriptor 3116 | getDescriptor() { 3117 | return descriptor; 3118 | } 3119 | private static com.google.protobuf.Descriptors.FileDescriptor 3120 | descriptor; 3121 | static { 3122 | java.lang.String[] descriptorData = { 3123 | "\n\032WindSeedClientNotify.proto\032\014Vector.pro" + 3124 | "to\"\274\003\n\024WindSeedClientNotify\022=\n\016refresh_n" + 3125 | "otify\030\016 \001(\0132#.WindSeedClientNotify.Refre" + 3126 | "shNotifyH\000\022K\n\026add_wind_bullet_notify\030\007 \001" + 3127 | "(\0132).WindSeedClientNotify.AddWindBulletN" + 3128 | "otifyH\000\0227\n\013area_notify\030\005 \001(\0132 .WindSeedC" + 3129 | "lientNotify.AreaNotifyH\000\032$\n\rRefreshNotif" + 3130 | "y\022\023\n\013refresh_num\030\007 \001(\r\032j\n\023AddWindBulletN" + 3131 | "otify\022\031\n\010seed_pos\030\016 \001(\0132\007.Vector\022\033\n\023Unk3" + 3132 | "300_CKIKKCAFJBC\030\007 \001(\r\022\033\n\023Unk3300_MPDFAPB" + 3133 | "DJAH\030\013 \001(\r\032C\n\nAreaNotify\022\017\n\007area_id\030\014 \001(" + 3134 | "\r\022\021\n\tarea_code\030\n \001(\014\022\021\n\tarea_type\030\r \001(\rB" + 3135 | "\010\n\006notifyB\033\n\031emu.grasscutter.net.protob\006" + 3136 | "proto3" 3137 | }; 3138 | descriptor = com.google.protobuf.Descriptors.FileDescriptor 3139 | .internalBuildGeneratedFileFrom(descriptorData, 3140 | new com.google.protobuf.Descriptors.FileDescriptor[] { 3141 | emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(), 3142 | }); 3143 | internal_static_WindSeedClientNotify_descriptor = 3144 | getDescriptor().getMessageTypes().get(0); 3145 | internal_static_WindSeedClientNotify_fieldAccessorTable = new 3146 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 3147 | internal_static_WindSeedClientNotify_descriptor, 3148 | new java.lang.String[] { "RefreshNotify", "AddWindBulletNotify", "AreaNotify", "Notify", }); 3149 | internal_static_WindSeedClientNotify_RefreshNotify_descriptor = 3150 | internal_static_WindSeedClientNotify_descriptor.getNestedTypes().get(0); 3151 | internal_static_WindSeedClientNotify_RefreshNotify_fieldAccessorTable = new 3152 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 3153 | internal_static_WindSeedClientNotify_RefreshNotify_descriptor, 3154 | new java.lang.String[] { "RefreshNum", }); 3155 | internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor = 3156 | internal_static_WindSeedClientNotify_descriptor.getNestedTypes().get(1); 3157 | internal_static_WindSeedClientNotify_AddWindBulletNotify_fieldAccessorTable = new 3158 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 3159 | internal_static_WindSeedClientNotify_AddWindBulletNotify_descriptor, 3160 | new java.lang.String[] { "SeedPos", "Unk3300CKIKKCAFJBC", "Unk3300MPDFAPBDJAH", }); 3161 | internal_static_WindSeedClientNotify_AreaNotify_descriptor = 3162 | internal_static_WindSeedClientNotify_descriptor.getNestedTypes().get(2); 3163 | internal_static_WindSeedClientNotify_AreaNotify_fieldAccessorTable = new 3164 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 3165 | internal_static_WindSeedClientNotify_AreaNotify_descriptor, 3166 | new java.lang.String[] { "AreaId", "AreaCode", "AreaType", }); 3167 | emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(); 3168 | } 3169 | 3170 | // @@protoc_insertion_point(outer_class_scope) 3171 | } 3172 | -------------------------------------------------------------------------------- /sources/WindyCommand.java: -------------------------------------------------------------------------------- 1 | package emu.grasscutter.command.commands; 2 | 3 | import emu.grasscutter.net.packet.BasePacket; 4 | import emu.grasscutter.server.packet.send.PacketWindSeedClientNotify; 5 | import java.util.List; 6 | import emu.grasscutter.game.player.Player; 7 | import emu.grasscutter.command.Command; 8 | import emu.grasscutter.command.CommandHandler; 9 | 10 | @Command(label = "windy", usage = "windy", aliases = { "w" }, permission = "player.windy", permissionTargeted = "player.windy.others") 11 | public class WindyCommand implements CommandHandler 12 | { 13 | @Override 14 | public void execute(final Player sender, final Player targetPlayer, final List args) { 15 | 16 | String path = "C:/Windy/" + args.get(0) + ".luac"; 17 | targetPlayer.sendPacket(new PacketWindSeedClientNotify(path)); 18 | CommandHandler.sendMessage(sender, "Sob!"); 19 | } 20 | } -------------------------------------------------------------------------------- /uid.lua: -------------------------------------------------------------------------------- 1 | //test aligning to center CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID").transform.position = CS.UnityEngine.Vector3(CS.UnityEngine.Screen.width / -2, 20, 0); 2 | CS.UnityEngine.GameObject.Find("/BetaWatermarkCanvas(Clone)/Panel/TxtUID"):GetComponent("Text").text = "bruh" 3 | --------------------------------------------------------------------------------