package Ġcom . the 9 ground s . ae add itions . integration . open comp ut ers Ċ Ċ import Ġapp eng . api . util . AE Part Location Ċ import Ġapp eng . tile . misc . Tile Interface Ċ import Ġapp eng . tile . misc . Tile Security Station Ċ import Ġli . cil . oc . api . Network Ċ import Ġli . cil . oc . api . network . Environment Host Ċ import Ġli . cil . oc . api . network . Visibility Ċ import Ġli . cil . oc . api . pref ab . Abstract Managed Environment Ċ import Ġnet . minecraft . tile entity . TileEntity Ċ Ċ open Ġclass ĠUpgrade AE ( val Ġenv Host : ĠEnvironment Host ) Ġ: ĠNetwork Control < Tile Security Station >() Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġset Node ( Network . new Node ( this , ĠVisibility . Network ). with Connector (). with Component (" upgrade _ me ", ĠVisibility . Network ). create ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġtile (): ĠTile Security Station Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsecurity Ġ= Ġget Security () Ġ?: Ġthrow ĠSecurity Exception (" No ĠSecurity ĠStation ") ĊĊĠĠĠĠĠĠĠ Ġval Ġnode Ġ= Ġsecurity . get Grid Node ( AE Part Location . INTERNAL ) Ġ?: Ġthrow ĠSecurity Exception (" No ĠSecurity ĠStation ") ĊĊĠĠĠĠĠĠĠ Ġval Ġgrid Block Ġ= Ġnode . grid Block Ġ?: Ġthrow ĠSecurity Exception (" No ĠSecurity ĠStation ") ĊĊĠĠĠĠĠĠĠ Ġval Ġlocation Ġ= Ġgrid Block . location Ġ?: Ġthrow ĠSecurity Exception (" No ĠSecurity ĠStation ") ĊĊĠĠĠĠĠĠĠ Ġval Ġtile Security Ġ= Ġlocation . world . get TileEntity ( location . pos ) Ġas ? ĠTile Security Station Ġ?: Ġthrow ĠSecurity Exception (" No ĠSecurity ĠStation ") ĊĊĠĠĠĠĠĠĠ Ġreturn Ġtile Security ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġhost (): ĠEnvironment Host Ġ= Ġenv Host Ċ }