package Ġcom . mine in aby ss . mob zy . ecs . goals . minecraft Ċ Ċ import Ġcom . mine in aby ss . mob zy . api . helpers . entity . reach Distance Ċ import Ġcom . mine in aby ss . mob zy . api . nms . aliases . to N MS Ċ import Ġcom . mine in aby ss . mob zy . ecs . components . initialization . path finding . Path finder Component Ċ import Ġkotlinx . serialization . Serial Name Ċ import Ġkotlinx . serialization . Serializable Ċ import Ġnet . minecraft . server . v 1 _ 1 6 _ R 2 . Entity Living Ċ import Ġnet . minecraft . server . v 1 _ 1 6 _ R 2 . Path finder Goal Me lee Attack Ċ import Ġorg . bukkit . entity . Creature Ċ import Ġorg . bukkit . entity . Mob Ċ Ċ @ Serializable Ċ @ Serial Name (" minecraft : behavior . me lee _ attack ") Ċ class ĠMe lee Attack Behavior ( ĊĠĠĠ Ġprivate Ġval Ġattack Speed : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġprivate Ġval Ġsee Through W alls : ĠBoolean , ĊĠĠĠ Ġprivate Ġval Ġrange : ĠDouble ? Ġ= Ġnull Ċ ) Ġ: ĠPath finder Component () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġbuild ( mob : ĠMob ) Ġ= ĠMe lee Attack Goal ( mob Ġas ĠCre ature ) ĊĊĠĠĠ Ġinner Ġclass ĠMe lee Attack Goal ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġentity : ĠCre ature ĊĠĠĠ Ġ) Ġ: ĠPath finder Goal Me lee Attack ( entity . to N MS (), Ġattack Speed , Ġsee Through W alls ) Ġ{ ĊĠĠĠĠĠĠĠ Ġoverride Ġfun Ġa ( target : ĠEntity Living ): ĠDouble Ġ= Ġrange Ġ?: Ġentity . reach Distance ( target . bukkit Entity ) ĊĠĠĠ Ġ} Ċ } Ċ