code: public static <T extends MalisisGui> T current(Class<T> type)
  	{
  		GuiScreen gui = Minecraft.getMinecraft().currentScreen;
  		if (gui == null || !(gui instanceof MalisisGui))
  			return null;
  		try
  		{
  			return type.cast(gui);
  		}
  		catch (ClassCastException e)
  		{
  			return null;
  		}
  	}
docs: Gets the current {@link MalisisGui} of the specified type displayed.<br>
  If the current gu is not of <i>type</i>, null is returned.
  
  @param <T> the generic type
  @param type the type
  @return the t