title: Eclipse bug - transparent PNGs with black background?
body: <p>So I'm having this issue when coding a Minecraft  PVP Client, where drawing a png with a transparent background appears with a black background. I'm not sure if this is a bug with Eclipse or with my code.</p>
  <pre><code>
  import com.google.common.collect.Lists;
  import java.io.File;
  import java.util.List;
  import net.minecraft.client.Minecraft;
  import net.minecraft.nbt.CompressedStreamTools;
  import net.minecraft.nbt.NBTTagCompound;
  import net.minecraft.nbt.NBTTagList;
  import pandaclient.FeaturedServer;
  
  import org.apache.logging.log4j.LogManager;
  import org.apache.logging.log4j.Logger;
  
  public class ServerList
  {
      private static final Logger logger = LogManager.getLogger();
      private final Minecraft mc;
      private final List&lt;ServerData&gt; servers = Lists.&lt;ServerData&gt;newArrayList();
  
      public ServerList(Minecraft mcIn)
      {
          this.mc = mcIn;
          this.loadServerList();
      }
  
      public void loadServerList()
      {
          try
          {
              this.servers.clear();
              loadFeaturedServers();
              NBTTagCompound nbttagcompound = CompressedStreamTools.read(new File(this.mc.mcDataDir, &quot;servers.dat&quot;));
  
              if (nbttagcompound == null)
              {
                  return;
              }
  
              NBTTagList nbttaglist = nbttagcompound.getTagList(&quot;servers&quot;, 10);
  
              for (int i = 0; i &lt; nbttaglist.tagCount(); ++i)
              {
                  this.servers.add(ServerData.getServerDataFromNBTCompound(nbttaglist.getCompoundTagAt(i)));
              }
          }
          catch (Exception exception)
          {
              logger.error((String)&quot;Couldn\'t load server list&quot;, (Throwable)exception);
          }
      }
  
      private void loadFeaturedServers() {
          this.addServerData(new FeaturedServer(&quot;Minemen&quot;, &quot;na.minemen.club&quot;));
          
      }
      
      public int getFeaturedServerCount() {
          int count = 0;
          
          for(ServerData sd : this.servers) {
              if(sd instanceof FeaturedServer) {
                  count++;
              }
          }
          return count;
      }
  
      public void saveServerList()
      {
          try
          {
              NBTTagList nbttaglist = new NBTTagList();
  
              for (ServerData serverdata : this.servers)
              {
                  if(!(serverdata instanceof FeaturedServer)) {
                      nbttaglist.appendTag(serverdata.getNBTCompound());
                  }
              }
  
              NBTTagCompound nbttagcompound = new NBTTagCompound();
              nbttagcompound.setTag(&quot;servers&quot;, nbttaglist);
              CompressedStreamTools.safeWrite(nbttagcompound, new File(this.mc.mcDataDir, &quot;servers.dat&quot;));
          }
          catch (Exception exception)
          {
              logger.error((String)&quot;Couldn\'t save server list&quot;, (Throwable)exception);
          }
      }
  
      public ServerData getServerData(int index)
      {
          return (ServerData)this.servers.get(index);
      }
  
      public void removeServerData(int index)
      {
          this.servers.remove(index);
      }
  
      public void addServerData(ServerData server)
      {
          this.servers.add(server);
      }
  
      public int countServers()
      {
          return this.servers.size();
      }
  
      public void swapServers(int p_78857_1_, int p_78857_2_)
      {
          ServerData serverdata = this.getServerData(p_78857_1_);
          this.servers.set(p_78857_1_, this.getServerData(p_78857_2_));
          this.servers.set(p_78857_2_, serverdata);
          this.saveServerList();
      }
  
      public void func_147413_a(int index, ServerData server)
      {
          this.servers.set(index, server);
      }
  
      public static void func_147414_b(ServerData p_147414_0_)
      {
          ServerList serverlist = new ServerList(Minecraft.getMinecraft());
          serverlist.loadServerList();
  
          for (int i = 0; i &lt; serverlist.countServers(); ++i)
          {
              ServerData serverdata = serverlist.getServerData(i);
  
              if (serverdata.serverName.equals(p_147414_0_.serverName) &amp;&amp; serverdata.serverIP.equals(p_147414_0_.serverIP))
              {
                  serverlist.func_147413_a(i, p_147414_0_);
                  break;
              }
          }
  
          serverlist.saveServerList();
      }
  }
  </code></pre>
  <p>Also not sure which line of code it is on, but I am trying to draw a star png next to a specific featured server. Thanks for the help, I am pretty new to java coding.</p>