package Ġcom . mine in aby ss . mob zy . injection . types Ċ Ċ import Ġcom . mine in aby ss . id of r ont . nms . aliases .* Ċ import Ġcom . mine in aby ss . id of r ont . nms . entity . typeName Ċ import Ġcom . mine in aby ss . mob zy . ecs . components . ambient . Sounds Ċ import Ġcom . mine in aby ss . mob zy . injection . Custom Entity Ċ import Ġcom . mine in aby ss . mob zy . injection . ge ary Ċ import Ġcom . mine in aby ss . mob zy . injection . make Sound Ċ import Ġnet . minecraft . network . chat . I Chat Base Component Ċ import Ġnet . minecraft . server . level . World Server Ċ import Ġnet . minecraft . world . entity . Entity Age able Ċ import Ġnet . minecraft . world . entity . Entity Types Ċ import Ġnet . minecraft . world . entity . animal . Entity Animal Ċ Ċ open Ġclass ĠPass ive Mob ( ĊĠĠĠ Ġtype : ĠN M SE ntity Type <* >, Ġworld : ĠN MS World Ċ ) Ġ: ĠEntity Animal ( type Ġas ĠEntity Types < out ĠEntity Animal >, Ġworld ), ĠCustom Entity Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcreate Child ( world Server : ĠWorld Server , Ġentity Age able : ĠEntity Age able ): ĠEntity Age able ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġget Score board DisplayName (): ĠI Chat Base Component Ġ= ĠN MS ChatMessage ( entity Type . typeName ĊĠĠĠĠĠĠĠ Ġ. split ('_ '). join ToString (" Ġ") Ġ{ Ġit . replace First Char ( Char :: uppercase ) Ġ}) ĊĊĠĠĠ Ġoverride Ġfun Ġget Sound Volume (): ĠFloat Ġ= Ġge ary . get < Sounds >() ?. volume Ġ?: Ġsuper . get Sound Volume () ĊĠĠĠ Ġoverride Ġfun Ġget Sound Ambient (): ĠN MSS ound ? Ġ= Ġmake Sound ( super . get Sound Ambient ()) Ġ{ Ġambient Ġ} ĊĠĠĠ Ġoverride Ġfun Ġget Sound Death (): ĠN MSS ound ? Ġ= Ġmake Sound ( super . get Sound Death ()) Ġ{ Ġdeath Ġ} ĊĠĠĠ Ġoverride Ġfun Ġget Sound Splash (): ĠN MSS ound ? Ġ= Ġmake Sound ( super . get Sound Splash ()) Ġ{ Ġsplash Ġ} ĊĠĠĠ Ġoverride Ġfun Ġget Sound Sw im (): ĠN MSS ound ? Ġ= Ġmake Sound ( super . get Sound Sw im ()) Ġ{ Ġsw im Ġ} ĊĠĠĠ Ġoverride Ġfun Ġget Sound H urt ( damage source : ĠN MS Damage Source ): ĠN MSS ound ? Ġ= ĊĠĠĠĠĠĠĠ Ġmake Sound ( super . get Sound H urt ( damage source )) Ġ{ Ġh urt Ġ} Ċ } Ċ