String function ( Location arg0 ) { if ( arg0 == null ) { return "srini_string" ; } return String . format ( Locale . ENGLISH , "srini_string" , arg0 . getWorld ( ) . getName ( ) , arg0 . getX ( ) , arg0 . getY ( ) , arg0 . getZ ( ) , arg0 . getYaw ( ) , arg0 . getPitch ( ) ) ; }
convert a location into a colon separated string to allow us to store it in text . world : x , y , z : yaw : pitch the corresponding string2loc function is #stringtolocation concode_field_sep Map<String,Integer> orientationInts concode_field_sep Vector getTranslatedVector concode_elem_sep float getYaw concode_elem_sep Location getBlockLocation concode_elem_sep String getDirection concode_elem_sep float getSpeed concode_elem_sep String strCoordsRaw concode_elem_sep Location getNextBlock concode_elem_sep Location stringToLocation concode_elem_sep String strCoords