// Token: 0x060003D4 RID: 980 RVA: 0x00019864 File Offset: 0x00017A64
 public static void stash()
 {
     try
     {
         if (Main.stash1.GetData <bool>() && Entities.stashes != null)
         {
             foreach (StashContainer stashContainer in Entities.stashes)
             {
                 if (ResourceESP.smethod_0(stashContainer, null) && ResourceESP.smethod_4(stashContainer) && !ResourceESP.smethod_5(stashContainer))
                 {
                     Vector3 a       = ResourceESP.smethod_2(ResourceESP.smethod_1(stashContainer));
                     Vector3 vector  = ResourceESP.smethod_3(MainCamera.mainCamera, ResourceESP.smethod_2(ResourceESP.smethod_1(stashContainer)));
                     Vector3 vector2 = MainCamera.mainCamera.WorldToScreenPoint(a + new Vector3(0f, 1f, 0f));
                     if (vector.z > 0f)
                     {
                         int num = (int)Vector3.Distance(LocalPlayer.Entity.transform.position, stashContainer.transform.position);
                         if ((float)num <= Main.Distance)
                         {
                             float num2 = Mathf.Abs(vector.y - vector2.y);
                             vector.x += 3f;
                             vector.y  = (float)Screen.height - (vector.y + 1f);
                             Rendering.DrawString1(new Vector2(vector.x, vector.y - 10f), stashContainer.ShortPrefabName, Color.yellow, true, 10, FontStyle.Bold, 3);
                             Rendering.CornerBox(new Vector2(vector2.x, (float)Screen.height - vector2.y), num2, num2 / 2f, 2f, new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue), false);
                         }
                     }
                 }
             }
         }
     }
     catch (NullReferenceException)
     {
     }
 }
 // Token: 0x060003D2 RID: 978 RVA: 0x0001952C File Offset: 0x0001772C
 public static void DrawResources()
 {
     try
     {
         if (Main.shouldDrawResources.GetData <bool>() && Entities.oreandtrees != null)
         {
             foreach (ResourceEntity resourceEntity in Entities.oreandtrees)
             {
                 if (ResourceESP.smethod_0(resourceEntity, null))
                 {
                     Vector3 a       = ResourceESP.smethod_2(ResourceESP.smethod_1(resourceEntity));
                     Vector3 vector  = ResourceESP.smethod_3(MainCamera.mainCamera, ResourceESP.smethod_2(ResourceESP.smethod_1(resourceEntity)));
                     Vector3 vector2 = MainCamera.mainCamera.WorldToScreenPoint(a + new Vector3(0f, 1f, 0f));
                     if (vector.z > 0f)
                     {
                         int num = (int)Vector3.Distance(LocalPlayer.Entity.transform.position, resourceEntity.transform.position);
                         if ((float)num <= Main.Distance)
                         {
                             Mathf.Abs(vector.y - vector2.y);
                             vector.x += 3f;
                             vector.y  = (float)Screen.height - (vector.y + 1f);
                             Rendering.DrawString1(new Vector2(vector.x, vector.y - 10f), resourceEntity.ShortPrefabName, Color.yellow, true, 10, FontStyle.Bold, 3);
                         }
                     }
                 }
             }
         }
     }
     catch (NullReferenceException)
     {
     }
 }
 // Token: 0x060003D5 RID: 981 RVA: 0x00019A64 File Offset: 0x00017C64
 private void OnGUI()
 {
     try
     {
         ResourceESP.DrawResources();
         ResourceESP.stash();
         ResourceESP.stash1();
     }
     catch
     {
     }
 }